Repository navigation
Conversation
|
THIS MESSAGE WAS GENERATED BY AN AUTOMATED PROCESS This note applies to head Eight affected dumps have no memory list. The smallest is a 912-byte x86 dump with SHA-256 Most of these eight dumps appear to be authored rather than captured. They use one module timestamp for every module. They also use sequential thread IDs and a header These eight dumps still fail at the module loop that #715 replaces. None can serve as the regression fixture for this change. The branch was re-keyed on 2026-08-28. The original head was
|
|
Corpus decompilation diffs can be found at angr/dec-snapshots@master...angr/cle_725 |
376d41f to
9f41442
Compare
9f41442 to
c9d2bf5
Compare
A minidump's stream directory lists only the streams its writer chose to emit; the header and the directory are the only mandatory parts of the file. The backend read four of them and handled a missing one three different ways: the memory list was required, the module and thread lists were dereferenced unguarded and produced an AttributeError from the middle of a loop, and only the system information stream raised a considered error. A dump with no memory list now loads with no memory, and one with no module or thread list loads with no sections or with no threads. The module list is read on the architecture path as well, where a 64-bit dump without one failed before any of that. MinidumpMissingStreamError, which the missing system information stream still raises when no architecture was passed either, now derives from CLEError and hands its explanation to the base class. It was invisible to except CLEError, and str() on it was empty because the explanation only ever reached an attribute. A module whose image the dump did not capture is still rejected twenty lines further down; #715 covers that half.
c9d2bf5 to
0885272
Compare
|
THIS MESSAGE WAS GENERATED BY AN AUTOMATED PROCESS The old backend fails when a minidump lacks Each case below uses cle at the merge base, 46a3733With this change, the backend loads the first three minidumps with the data they contain. A missing with this change, 0885272 |
THIS MESSAGE WAS GENERATED BY AN AUTOMATED PROCESS
Problem
A minidump directory lists only the streams that its writer emitted. The backend failed when a module stream was absent. Removing
ModuleListStreamfromtests/x86_64/windows/breakpad/tiny-exe-with-cet-xsave.dmpproduces this error:This failure stops the load. It prevents access to captured memory, recorded thread registers, and module sections. A missing
SystemInfoStreamalso raisedMinidumpMissingStreamErrorwithstr(e)=''andisinstance(cle.CLEError) = False.Cause
The
minidumppackage represents an absent stream asNone.Minidump.__init__readself._mdf.modules.modulesat two sites andself._mdf.threads.threadsat one site without checking forNone. It also rejected a dump with no captured memory:A minidump requires only its header and stream directory. These streams may be absent.
MinidumpMissingStreamErrorinherited fromExceptionand did not pass its message to the base class. The exception therefore had an empty string and was not aCLEError.Fix
The backend now reads
modulesandthreadsonce. It uses[]when either stream is absent. A dump without a module stream has no sections. A dump without a thread stream has no threads. A dump without a memory list hassegments = [].MinidumpMissingStreamErrornow derives fromCLEErrorand passes its message to the base class.A missing
SystemInfoStreamstill raises because the backend cannot infer the architecture. The backend still rejects a module when the dump did not capture its image.#715 changes the same function. The second pull request to land will need a rebase.