diff options
| author | liang-kai-shui <1677378668@qq.com> | 2026-11-22 23:49:01 +0800 |
|---|---|---|
| committer | liang-kai-shui <1677378668@qq.com> | 2026-11-22 23:49:01 +0800 |
| commit | 530f0f5fe2f1398cf4be8e4f65bb4eebdce9e38c (patch) | |
| tree | 036f89858e6dd2cacc8d6f82400b27ed7a5cba68 /runtime/src/pe_loader.cpp | |
| parent | 4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (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