Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stack overflow in remoteMemoryRead
When doing a remote memory read the debugger can ask for any size. The buffer being allocated however was only 1024 bytes long and the code in remoteMemoryRead also attempts to write a zero byte at the end of the array. This code will now take the count of bytes the debugger is trying to read and allocates a buffer that is count * 2 + 1 large. This is large enough to hold the $02x formatted hex byte for each byte as well as the zero byte written at the end.
- Loading branch information