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:
authorliang-kai-shui <1677378668@qq.com>2026-11-22 23:49:01 +0800
committerliang-kai-shui <1677378668@qq.com>2026-11-22 23:49:01 +0800
commit530f0f5fe2f1398cf4be8e4f65bb4eebdce9e38c (patch)
tree036f89858e6dd2cacc8d6f82400b27ed7a5cba68 /runtime/src/pe_loader.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
gen_d3d12_stubs: refuse report paths that overwrite an input
--report and --out were written with write_if_changed after the header and the --source files were read, and nothing checked the paths, so --report <source.cpp> replaced the source with the coverage JSON (a 44-byte source became 197 bytes, exit 0) and --out <d3d12.h> would replace the header. Validate --source/--header as files, refuse --out or --report that alias the header, a source or each other, refuse folders, and report write failures as one ERROR line with exit 2.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions