upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/opus_decoder/src
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-23 13:01:10 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 07:16:30 -0500
commit117d6b2c5ac4626ab34fc2703f6dc124a5133cfc (patch)
treece1819f6ca1592d00d77b87b024d1feb48cbdfae /runtime/opus_decoder/src
parentd13044b778034b7ac7066211865f2c06ba8e6048 (diff)
d3d12_device_calls: count a method in rax only through a verified dispatch routine (review of old upstream PR 7998)
A direct call with a method pointer left in rax was counted as that slot whatever the call reached, so a helper that only returns made a slot appear (shdann's repro on old upstream PR 7998). The target, or for `call [rip+p]` the code the file's pointer p holds, must now reach `jmp rax` or `call rax` within 16 instructions without writing rax, calling or returning first (conditional branches allowed): the CFG no-op dispatch and a guard check that ends in `jmp rax`. Verified targets are cached. Any other target goes to a new "dispatch calls to unverified targets" count, never a slot. The fixture's GUARD pointer now holds a `jmp rax` stub; new functions call a guard-check stub (slot counted) and a helper that only returns (not counted, reported as not resolved), and shdann's patch is a test. The census on the 1.0.2.1 executable is unchanged: all 83 sites are `call [vtable+disp]`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder/src')
0 files changed, 0 insertions, 0 deletions