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

Conversation

NickHarmer
Copy link

InArchiveFormat.Deb is declared as "21-3C-61-72-63-68-3E-0A-64-65-62-69-61-6E-2D-62-69-6E-61-72-79", which requires 21 bytes to match, rather than the 16 currently supported in SpecialDetect()

This PR simply increases the SIGNATURE_SIZE constant from 16 to 21

Copy link
Owner

@squid-box squid-box left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I've checked the code and done some quick tests - looks like a solid fix.

@squid-box squid-box merged commit fc03cb8 into squid-box:dev Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants