Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #115 from NickHarmer/fix-deb-signature
Browse files Browse the repository at this point in the history
Update SIGNATURE_SIZE constant from 16 bytes to 21 bytes to support DEB signature length
  • Loading branch information
squid-box committed Mar 4, 2021
2 parents 9f2cf98 + 1d7204a commit fc03cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SevenZip/FileChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// <remarks>Based on the code at http://blog.somecreativity.com/2008/04/08/how-to-check-if-a-file-is-compressed-in-c/#</remarks>
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)
Expand Down

0 comments on commit fc03cb8

Please sign in to comment.