skelsec / minidump

Python library to parse and read Microsoft minidump file format
MIT License
272 stars 55 forks source link

Bug: NameError: name 'MinidumpThreadExList' is not defined #23

Closed pd-fkie closed 3 years ago

pd-fkie commented 3 years ago

In minidump/minidumpfile.py on line 128 the method MinidumpThreadExList.parse gets called but MinidumpThreadExList was not imported resulting in the following exception:

NameError: name 'MinidumpThreadExList' is not defined
Traceback (most recent call last):
  File "fuzz_minidump.py", line 14, in test_one_input
    minidump.minidumpfile.MinidumpFile.parse_bytes(b"MDMP" + data)
  File "minidump/minidumpfile.py", line 66, in parse_bytes
    return MinidumpFile.parse_buff(io.BytesIO(data))
  File "minidump/minidumpfile.py", line 72, in parse_buff
    mf._parse()
  File "minidump/minidumpfile.py", line 80, in _parse
    self.__parse_directories()
  File "minidump/minidumpfile.py", line 128, in __parse_directories
    self.threads_ex = MinidumpThreadExList.parse(dir, self.file_handle)

The following minidump file can trigger the exception:
crash-237cd8dcdd1e26050f915932c17a9741c9600a4f

skelsec commented 3 years ago

Hello, thank you for submitting this issue. Yup, that's a problem I will fix it in the new release and get back to this issue to close it.

skelsec commented 3 years ago

Fixed in new release now.