Skip to content
Snippets Groups Projects
Commit 8b3f0f3f authored by Paul Fertser's avatar Paul Fertser Committed by Spencer Oliver
Browse files

svf: off-by-one error; do not access after the allocated memory


Keep the promise and ensure there're at least 3 bytes available after
the current position.

This eliminates the errors reported by Valgrind.

Change-Id: I1d0640e904c750eed808b2b4caf419b4d7619845
Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1615


Tested-by: jenkins
Reviewed-by: default avatarPeter Stuge <peter@stuge.se>
parent 3377c164
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment