diff options
| author | MoonEyes <MoonEyes@users.noreply.github.com> | 2026-12-02 23:04:46 +0100 |
|---|---|---|
| committer | MoonEyes <MoonEyes@users.noreply.github.com> | 2026-12-02 23:04:46 +0100 |
| commit | a22fa26d64acfb736d904c2c23b34d61463e5080 (patch) | |
| tree | 702cbb445f7661808efa9e8000434b8173c456f5 /runtime/opus_decoder/src | |
| parent | f3865cae87c963952067743a2684a9c2c3aaea5b (diff) | |
leonida-lua: the fake image starts on a page, so a scan below it no longer skips the marker (LEONIDA-LUA-SCAN-END-3193)
a_scan_without_a_size_reaches_the_end_of_the_image failed about one run
in twenty. The fake title image was a plain 4096-byte Vec at whatever
address the allocator gave. A scan whose range is not all readable (the
second scan starts 100 bytes below the image) reads by pages, and a page
only partly inside the buffer is unreadable in the fake, so when the
buffer started within 100 bytes after a page boundary the page holding the
marker was skipped. A real image is whole pages, where that cannot happen.
The fake now keeps its 4096 bytes on a page boundary, and a test pins it.
Also takes the .unwrap() off Runtime::new in the dangling-link test, the
same one-line change as #3237, so the crate's tests build on main.
Fixes #3193
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder/src')
0 files changed, 0 insertions, 0 deletions