mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 21:00:42 +02:00
A couple things here, we were never returning the last searched element, either the last or first depending on search direction. Also the backward scan would return incorrect indexes in some cases. Also scanning beyond its page bounds. Additionally some minorly incorrect assertions. Adds a new unit test that ensures that we can allocate in to every location, and that we get the correct indexes back. Also allocated within guarded pages to ensure it doesn't read outside the bounds. Fixes a spurious crash in Ender Magnolia.