readmem (ARM): boundary check against end of addressable space

This commit is contained in:
Martijn Plak committed 2024-01-23 08:41:53 +01:00
1 parent 6524c7ada7
commit ebdd30e92c
2 files changed
+6

No files matched your search

+3
View File
@@ -186,6 +186,9 @@ static void UsbPacketReceived(uint8_t *packet) {
} else {
// Allow reading from any memory address and length in special 'raw' mode.
base = NULL;
// Boundary check against end of addressable space.
if (offset > 0)
count=MIN(count, -offset);
}
if (isok) {