rmusser01 / pefile

Automatically exported from code.google.com/p/pefile
Other
0 stars 1 forks source link

Comments in UserDB.txt files cause the parser to crash #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This line:

return int (value, 16)

crashes when encountering a comment (line starting with ';') in a UserDB.txt 
file.

Original issue reported on code.google.com by haakone...@gmail.com on 8 Feb 2012 at 6:32

GoogleCodeExporter commented 9 years ago
I have to correct myself here, it's not the semicolons it can't handle, it's 
probably something wrong with the file. The exception gives very little 
information about what failed (which line of signature file, etc)

The file in question is the one provided here: 
http://www.reversing.be/forum/viewtopic.php?t=399

Original comment by haakone...@gmail.com on 8 Feb 2012 at 6:57

GoogleCodeExporter commented 9 years ago
The UserDB.txt file you point to has several syntax errors. It uses a single 
question mark to denote a byte, there are some semicolons between a packer's 
attributes, and some packers do not have a "ep_only" or "section_start_only" 
attribute. If those issues are fixed, the file loads correctly.

Original comment by ero.carr...@gmail.com on 27 Oct 2014 at 4:09