upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorowenjbendon-creator <281052257+owenjbendon-creator@users.noreply.github.com>2026-11-28 15:30:25 +0000
committerowenjbendon-creator <281052257+owenjbendon-creator@users.noreply.github.com>2026-11-28 15:30:25 +0000
commitdd26534459de528543a6cac2ae35d8a84689c0aa (patch)
tree79a9d3c093993dbc973b1d3ee81c7e51b4b4122c /runtime/src/xma2_decoder.cpp
parent99bb9dadfec165b4e8017fb7008696db28a71b19 (diff)
agility: a section past u32::MAX is no section, not an overflow (review of #2557)
exported_sdk_version's section lookup added va + size and rva - va + raw unchecked: a malformed or truncated D3D12Core.dll could panic there in a build with overflow checks. Both are checked now, and such a section is skipped (None), as zmasi suggested in the review. New test exported_sdk_version_is_none_for_a_section_past_u32_max: with overflow checks on (CARGO_PROFILE_DIAG_OVERFLOW_CHECKS=true) it fails before this change ("attempt to add with overflow") and passes after; agility::tests 6 passed on Windows 10 22H2, RTX 3090. Written with AI assistance (Claude). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions