summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-08 19:32:06 +1000
committerZephyron <zephyron@citron-emu.org>2025-02-08 19:32:06 +1000
commit7ecb890a1613071bff317f468a15ead61eddf7a0 (patch)
tree1b94f8e37a819fe76d3c642682a5f4f33ddfa466 /src/android
parentc31768ec15c75d4b8b3323b88fbc8c085dcb0041 (diff)
common: improve host memory mapping validation
- Add maximum memory size limit of 512GB (Overkill) - Implement additional safety checks for memory mapping: * Validate non-zero addresses * Verify address alignment * Add length validation against maximum size - Remove redundant assertion for host_offset alignment - Remove potentially problematic mapping verification - Improve error logging for invalid mapping attempts These changes enhance memory safety by adding proper bounds checking and validation before performing memory mappings, while removing a potentially problematic post-mapping verification step.
Diffstat (limited to 'src/android')
0 files changed, 0 insertions, 0 deletions