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:
authorimShangLi <imshangli@users.noreply.github.com>2026-12-02 12:19:23 +0800
committerimShangLi <imshangli@users.noreply.github.com>2026-12-02 12:19:23 +0800
commit76ba820fb836259a8badd17aedc1cee3d6153ca6 (patch)
treeb6230833716b12b0c4eca28a3666a9b5f079d54e /runtime/src/xma2_decoder.cpp
parent8422def759cda12c89f918438eeb8d53dd5972a6 (diff)
D3D12-LUA-MEMORY-SCAN-BOUNDS: a scan covers a bounded range and its options are checked
The range of leonida.memory.scan was checked against the process, not against the work it causes: a mod could ask for the whole user range (128 TiB) and the scan's time was refunded to the call budget, so nothing stopped it. The one thread that runs every mod then sat in the scan for hours, and the other mods, the menu callbacks and the reload path waited for it. - one scan covers at most 256 MiB (the whole image, when it is bigger) - start, size and max are whole numbers: a negative one or another kind of value is refused with the reason, not taken for something else - without a size, the range reaches the end of the image (it ended 100 bytes short when it started below the image)
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions