kongo86 / pefile

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

NoneType instead stringfileinfo_string #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!
I have tested you library on a large number of files. In some of them I had
the following exception

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/python2.6/site-packages/pefile-1.2.10_63-py2.6.egg/pefile.py",
line 1443, in __init__
  File "/lib/python2.6/site-packages/pefile-1.2.10_63-py2.6.egg/pefile.py",
line 1730, in __parse__
  File "/lib/python2.6/site-packages/pefile-1.2.10_63-py2.6.egg/pefile.py",
line 2002, in parse_data_directories
  File "/lib/python2.6/site-packages/pefile-1.2.10_63-py2.6.egg/pefile.py",
line 2400, in parse_resources_directory
  File "/lib/python2.6/site-packages/pefile-1.2.10_63-py2.6.egg/pefile.py",
line 2604, in parse_version_information
AttributeError: 'NoneType' object has no attribute 'startswith'

I have attached sample file. 
WARNING! This file is malware.

Original issue reported on code.google.com by yakovenko87@gmail.com on 18 May 2010 at 1:18

Attachments:

GoogleCodeExporter commented 9 years ago
See Issue #13.

Original comment by kbandla%...@gtempaccount.com on 18 May 2010 at 2:36

GoogleCodeExporter commented 9 years ago
Fixed in revision 78. Thanks for reporting this!

Original comment by ero.carr...@gmail.com on 16 Aug 2010 at 11:13