upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
diff options
context:
space:
mode:
authorsyfyra <258908070+syfyra@users.noreply.github.com>2026-11-26 12:28:44 +0100
committersyfyra <258908070+syfyra@users.noreply.github.com>2026-11-26 12:28:44 +0100
commit1efc6290960ffc6dd1dd3c499aec1f47cfe12ad5 (patch)
treed8d347d9ada127a51234ff9897d541fd26e4ab54 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
parenta73a57e1339be072baf5522351c8ec7f1482b56b (diff)
inline_scan: follow a list copied before the cursor load (INLINE-SCAN-COPY-BEFORE-LOAD)
classify() walks back from a cursor store-back and took the load `mov rax,[rcx+18h]` as the list's cursor only if rcx was already in `bases` at that point. A copy `mov rbx,rcx` that comes before the load is met after it on the way back, so the load counted as another structure's +18h, the site lost load_traced and an unchecked write of that shape was reported as `unrelated`: the summary said "UNCHECKED 0" for a write that never checks. A checked write of the same shape was already found, because the compare pass runs forwards over the final `bases`. Record the load's base and check it once the walk has collected every register the list was copied through. A load from a register that never held the list is still another structure, as before. Tested: new test_list_copied_before_the_cursor_load_is_still_unchecked (fails before the fix for the copy-before-load order, passes after) and test_cursor_loaded_from_another_structure_is_not_a_list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions