upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorAyinaki <ayinakidev@gmail.com>2026-11-21 20:11:55 +0000
committerAyinaki <ayinakidev@gmail.com>2026-11-21 20:11:55 +0000
commit67735ca1d490f62db2d4e1651c4097bb74532674 (patch)
tree820a1b0734d1dfd27c850b8c24f6ee9310466590 /runtime/src/pe_loader.cpp
parent4c75ce537add406b426d0a1dc84d9a01fb4c86c9 (diff)
Tools: parse PE images with struct instead of pefile
tools/pe_inspect.py imported pefile at module level, which the contributing rules do not allow, and which kept the tool out of the standard-library check job: no test imported it, so CI only syntax-checked it while scripts/first_look.ps1 still ran it on the executable people bring. It now reads the DOS and NT headers, the section table and the import, delay-import, export, TLS and relocation directories with struct, and writes the same JSON and Markdown with the same keys. Delay-import descriptors without dlattrRva store 32-bit virtual addresses, so they are converted with the image base instead of being read as RVAs. The Markdown shim list no longer tests for a classifier result that is never produced. tests/test_pe_inspect.py builds a 64-bit and a 32-bit image byte by byte and covers both descriptor forms, imports by name and ordinal, an ordinal-only export, .pdata and TLS callback counts, DLL classification, the CLI's output files and its rejection path.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions