ebourg / jsign

Java implementation of Microsoft Authenticode for signing Windows executables, installers & scripts
https://ebourg.github.io/jsign
Apache License 2.0
250 stars 107 forks source link

fix for crash with small files #160

Closed paolodenti closed 1 year ago

paolodenti commented 1 year ago

When reading small files, less than 8 bytes, the size of a long, the DataInputStream.readLong fails throwing EOFException.

ebourg commented 1 year ago

Thanks! Do you think you could add a unit test too?

paolodenti commented 1 year ago

Sure, I will

ebourg commented 1 year ago

It looks good thank you