summaryrefslogtreecommitdiff
path: root/src/core/telemetry_session.cpp
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-01-06 20:04:35 +1000
committerZephyron <zephyron@citron-emu.org>2025-01-06 20:04:35 +1000
commit66b6d5b2da4b65d11fe54c29c3babb8fcd98bfde (patch)
treec94db36e4279f085c54740b73d6e61b3a1d5a8ee /src/core/telemetry_session.cpp
parent83393a6c6bedc9c00378c73721ec17c7a4fb2b71 (diff)
core: Improve device memory and buffer queue handling
This commit makes several improvements to device memory management and buffer queue handling: DeviceMemoryManager: - Add null pointer and size checks for ReadBlock - Fill unmapped memory with a known pattern (0xCC) instead of zeros - Add better error logging for invalid memory accesses - Add null pointer check for source pointer in memcpy BufferQueueProducer: - Improve error handling in WaitForFreeSlotThenRelock - Add proper abandoned state checking during wait conditions - Clean up and simplify buffer scanning logic - Improve logging messages with more descriptive information - Remove redundant buffer count validation - Fix potential infinite loop condition during wait These changes improve stability and error handling while making the code more maintainable and debuggable. The use of a known pattern for unmapped memory helps identify uninitialized memory access issues.
Diffstat (limited to 'src/core/telemetry_session.cpp')
0 files changed, 0 insertions, 0 deletions