summaryrefslogtreecommitdiff
path: root/src/audio_core
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-01-02 18:03:47 +1000
committerZephyron <zephyron@citron-emu.org>2025-01-02 18:03:47 +1000
commiteb2a666a69a23523be14313523162d1f43b01008 (patch)
treed60abc50230ed1eb6ea85e0631bd0411a2669b0e /src/audio_core
parent167a9e1a5b495b469f119c3bcc7c5057f26a22ee (diff)
buffer_cache: Fix storage buffer memory validation and size detection
Fixes the StorageBufferBinding function to properly handle memory validation and size detection. Key changes include: - Fix ReadBlock usage to properly handle void return values - Implement safer memory validation using byte-level reads - Improve size detection logic for storage buffers - Fix NVN buffer size reading - Add proper bounds checking for device memory addresses - Add better error logging for invalid conditions This addresses the "Failed to find storage buffer for cbuf index 0" errors by implementing more robust memory validation and size detection. The changes ensure proper handling of invalid memory addresses and prevent crashes from accessing out-of-bounds memory.
Diffstat (limited to 'src/audio_core')
0 files changed, 0 insertions, 0 deletions