We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f42bca commit 2a9a98eCopy full SHA for 2a9a98e
CachedQuickLz/CachedQlzCommon.cs
@@ -38,6 +38,9 @@ public static int SizeCompressed(byte[] source)
38
/// <returns>If the array is compressed with QuickLz or not</returns>
39
public static bool IsCompressed(byte[] source, int length)
40
{
41
+ if (source == null || source.Length < QlzConstants.QlzTrailLength || length < QlzConstants.QlzTrailLength)
42
+ return false;
43
+
44
var trailEquals = true;
45
for (var i = length - 1; i > length - QlzConstants.QlzTrailLength; i--)
46
0 commit comments