summaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache/buffer_cache.cpp
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-08 19:32:06 +1000
committerMike Lothian <mike@fireburn.co.uk>2025-05-11 14:54:45 +0100
commitc4ff123a3e50ffc5538ecdc3ab4f418bd2427db6 (patch)
tree625856093590aa649ba149ff10f53f1a224a019f /src/video_core/buffer_cache/buffer_cache.cpp
parent7b10fed487dbd291b93b2a81bb3cedea0755f8c6 (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/video_core/buffer_cache/buffer_cache.cpp')
0 files changed, 0 insertions, 0 deletions