upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorquackottu <224479491+quackottu@users.noreply.github.com>2026-11-22 12:48:35 +0530
committerquackottu <224479491+quackottu@users.noreply.github.com>2026-11-22 12:48:35 +0530
commit236b0acec3891b773ead57d3113b2f469d0e4a9f (patch)
treebeeaa4ed1f7b1ffa6e86d8bf3bc1b536b596cdc0 /runtime/src/thread_stacks.cpp
parentc63773d51235d72250d48699f29830ac9ddafd60 (diff)
pe_loader: honour NumberOfRvaAndSizes, and refuse a forwarder ordinal past 65535
Data directories past NumberOfRvaAndSizes were read anyway (only the exception directory checked the count), so stale bytes there were parsed as import, delay-import, export or relocation tables. And resolve_forwarder range-checked the ordinal before adding each digit, so '#65537' passed and was cast to ordinal 1. The hand-built test images now declare their 16 directories.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions