From 1d7204a54e9b220b1520fed1d55f7f7981b76e9e Mon Sep 17 00:00:00 2001 From: Nick Harmer Date: Wed, 24 Feb 2021 14:23:04 +0000 Subject: [PATCH] Update SIGNATURE_SIZE constant from 16 bytes to 21 bytes to support .DEB signature length --- SevenZip/FileChecker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SevenZip/FileChecker.cs b/SevenZip/FileChecker.cs index b6b69f3..810b542 100644 --- a/SevenZip/FileChecker.cs +++ b/SevenZip/FileChecker.cs @@ -10,7 +10,7 @@ /// Based on the code at http://blog.somecreativity.com/2008/04/08/how-to-check-if-a-file-is-compressed-in-c/# internal static class FileChecker { - private const int SIGNATURE_SIZE = 16; + private const int SIGNATURE_SIZE = 21; private const int SFX_SCAN_LENGTH = 256 * 1024; private static bool SpecialDetect(Stream stream, int offset, InArchiveFormat expectedFormat)