pombreda / portable-executable-library

Automatically exported from code.google.com/p/portable-executable-library
1 stars 0 forks source link

calculate_checksum fails on 64 bit linux ( when long is 8 bytes ) #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There is reading of sizeof(unsigned long) bytes from file, but on 64 bit linux 
long is 8 bytes. When replacing long with any 4 byte size ( like int ) 
everything works fine.

Original issue reported on code.google.com by bog...@gmail.com on 15 May 2013 at 10:40

GoogleCodeExporter commented 9 years ago
This issue has been confirmed and will be fixed in next release. Thank you!

Original comment by rukaimi on 16 May 2013 at 6:38

GoogleCodeExporter commented 9 years ago
I have had this issue with some other products lately due to not specifying 
int32_t... You could modify it yourself, or compile as 32bit using -m32..

Original comment by mike.gui...@gmail.com on 19 Jul 2014 at 2:27