2011-02-26 Michael Snyder <msnyder@vmware.com>

* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
This commit is contained in:
Michael Snyder 2011-02-27 21:20:06 +00:00
parent 35f5825a72
commit 0adea5f702
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2011-02-27 Michael Snyder <msnyder@vmware.com>
* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
* linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
in comparison.

View File

@ -4728,7 +4728,7 @@ linux_xfer_siginfo (const char *annex, unsigned char *readbuf,
readbuf != NULL ? "Reading" : "Writing",
pid);
if (offset > sizeof (siginfo))
if (offset >= sizeof (siginfo))
return -1;
if (ptrace (PTRACE_GETSIGINFO, pid, 0, &siginfo) != 0)