2011-02-26 Michael Snyder <msnyder@vmware.com>
* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
This commit is contained in:
parent
35f5825a72
commit
0adea5f702
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue