Re: bug report, [1.2.10-89]

3 views
Skip to first unread message

yakovenko

unread,
Nov 21, 2010, 12:56:48 AM11/21/10
to pefile
Hello guys,

I've found small bug. It sometimes raises following exception when
handled files without PE information.

Traceback (most recent call last):
File "/opt/mdpro/lib/mdpro/mddata/models.py", line 159, in
create_from_file
pe = pefile.PE(file_name, fast_load=True)
File "build/bdist.linux-x86_64/egg/pefile.py", line 1631, in
__init__
self.__parse__(name, data, fast_load)
File "build/bdist.linux-x86_64/egg/pefile.py", line 1674, in
__parse__
self.__data__, file_offset=0)
File "build/bdist.linux-x86_64/egg/pefile.py", line 1644, in
__unpack_data__
structure.__unpack__(data)
File "build/bdist.linux-x86_64/egg/pefile.py", line 858, in
__unpack__
if data.count(chr(0)) == len(data):
AttributeError: 'mmap.mmap' object has no attribute 'count'

Content of file for example:
<html><body style="background-color: transparent"></body></html>

Ero Carrera

unread,
Nov 21, 2010, 2:50:51 PM11/21/10
to pef...@googlegroups.com

Hi there,

Thanks for the report, I think I know where this might be coming from, would it be possible for you to provide a test file that triggers the problem? (or, if it's malware, I think I'll be able to get my hands on it if you let me know the hash of the file)

Thanks!
--
ero

> --
> You received this message because you are subscribed to the Google Groups "pefile" group.
> To post to this group, send email to pef...@googlegroups.com.
> To unsubscribe from this group, send email to pefile+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pefile?hl=en.
>

Reply all
Reply to author
Forward
0 new messages