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

Update SIGNATURE_SIZE constant from 16 bytes to 21 bytes to support DEB signature length #115

Merged
merged 1 commit into from
Mar 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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