upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorsanuk369 <224479491+quackottu@users.noreply.github.com>2026-11-22 11:33:49 +0530
committersanuk369 <224479491+quackottu@users.noreply.github.com>2026-11-22 11:33:49 +0530
commit22465fa6b6e7bad805d1f7ee22eafa56369177ec (patch)
treeca738e8bc25f8864262ff8ee0a529c6bc8c9df73 /runtime/src/thread_stacks.cpp
parent43d470316ec6cbcd64002bc3792998d9f5745dac (diff)
rootsig::pack: 64-bit sums, so a huge constant count can't wrap past the limits
cost and dword_count + dwords were 32-bit. With {Constants 1, Constants 0xFFFFFFFF} both wrap to 0, so the 64-dword cost check and the 32-SGPR check pass and the loop writes past PackResult::dwords[32] (the test binary dies with 0xC0000409). parse_rts0 copies Num32BitValues from a blob unchecked, so a malformed RTS0 reaches this. Both sums are now 64-bit; root_signature_test gets the wrapping case.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions