mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-12-06 12:43:35 +01:00
If (offset + size) % BLOCK_SIZE was smaller than offset % BLOCK_SIZE, the loop terminated one iteration too early, potentially leaving a block read-only. None of the existing users of LazyMemoryRegion could trigger this bug, because they never made EnsureMemoryPagesWritable calls that straddled across two blocks, but the next commit will add a new use that does.