You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a multifile RAR set that refused to decode. It failed while opening the first archive. I troubleshot it down to where it picked which codec to use. It found a "BD" in the data for a two character signature and then picked the wrong codec which failed to open the archive.
I changed the code to require that both the signature and extension match. It works but it defeats the purpose of using signature only. My suggestion is sort the signatures in "length of signature" order so the long signatures get checked before the short signatures. Every byte of additional signature that matches increases the confidence in the signature match.
The text was updated successfully, but these errors were encountered:
I had a multifile RAR set that refused to decode. It failed while opening the first archive. I troubleshot it down to where it picked which codec to use. It found a "BD" in the data for a two character signature and then picked the wrong codec which failed to open the archive.
I changed the code to require that both the signature and extension match. It works but it defeats the purpose of using signature only. My suggestion is sort the signatures in "length of signature" order so the long signatures get checked before the short signatures. Every byte of additional signature that matches increases the confidence in the signature match.
The text was updated successfully, but these errors were encountered: