diff options
| author | Ayinaki <ayinakidev@gmail.com> | 2026-11-21 20:11:55 +0000 |
|---|---|---|
| committer | Ayinaki <ayinakidev@gmail.com> | 2026-11-21 20:11:55 +0000 |
| commit | 67735ca1d490f62db2d4e1651c4097bb74532674 (patch) | |
| tree | 820a1b0734d1dfd27c850b8c24f6ee9310466590 /runtime/test/loader_test.cpp | |
| parent | 4c75ce537add406b426d0a1dc84d9a01fb4c86c9 (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/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions