skelsec / minidump

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

fix: MINIDUMP_EXCEPTION parsing #38

Closed iPower closed 11 months ago

iPower commented 11 months ago

Context

A friend of mine was trying this library because he needs to parse some minidumps for a private project. Everything worked fine, except for the MINIDUMP_EXCEPTION parsing. Since the code wasn't actually considering the size of ExceptionInformation, it was leading to incorrect parsing of ThreadContext from MINIDUMP_EXCEPTION_STREAM.

Solution

Very simple! Just read the entire field and then copy the actual parameters, which is what this PR achieves.

skelsec commented 11 months ago

Cool! Thank you!