diff options
| author | Narek Shaghoyan <narekshagoyan7@gmail.com> | 2026-11-22 17:10:56 +0000 |
|---|---|---|
| committer | Narek Shaghoyan <narekshagoyan7@gmail.com> | 2026-11-22 17:10:56 +0000 |
| commit | f616da931f782dc9c753b2a9d2fe4fbaff831f9a (patch) | |
| tree | 4d5c275cffddce4a83c4ebc8999c6a4296f1cb83 /runtime/shims/d3d12_com.cpp | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
rbf0_encode: fail closed on malformed reports, bool indices, direct NaN, and float32 overflow
Harden tools/rbf0_encode.py so edited/malformed trees and JSON reports raise clean EncodeError / SystemExit messages instead of tracebacks: reject bool for descriptor/attrs_declared, catch direct math.nan and struct.pack OverflowError in float_bits(), reject non-dict documents and non-str text, and validate report JSON/shape/offsets/OSError in write_all(). Synthetic tests added in tests/test_rbf0_encode.py.
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
0 files changed, 0 insertions, 0 deletions