diff options
| author | imShangLi <imshangli@users.noreply.github.com> | 2026-12-02 12:19:23 +0800 |
|---|---|---|
| committer | imShangLi <imshangli@users.noreply.github.com> | 2026-12-02 12:19:23 +0800 |
| commit | 76ba820fb836259a8badd17aedc1cee3d6153ca6 (patch) | |
| tree | b6230833716b12b0c4eca28a3666a9b5f079d54e /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | 8422def759cda12c89f918438eeb8d53dd5972a6 (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/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions