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.
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 ofExceptionInformation
, it was leading to incorrect parsing ofThreadContext
fromMINIDUMP_EXCEPTION_STREAM
.Solution
Very simple! Just read the entire field and then copy the actual parameters, which is what this PR achieves.