benilla-re systems structs docs

s_loadModuleImageScope

global · os

Address
0x81d760 · 12 bytes, up to 0x81d76b
Type
const int32_t[3]
Meaning
Holds the loader's exception scope: -1, the filter 0x7a7d42 and the handler 0x7a7d48
Confidence
verified, proof one
Finding
warden/modules#faults-while-loading

Finding: Faults while loading in warden: module decoding and loading

The client makes no bounds check, and a fault does not end it. A run, a relocation offset, an import name or a section can reach past the blob or the image. The loader runs inside an exception frame whose filter handles every exception; a fault ends in the unloader and a return of 0. An access that does not fault succeeds without a sign: the image is VirtualAlloced in whole pages, and a run copied past size lands in the rest of the last page.

The derivation is in the doc.