diff options
author | Michael Snyder <msnyder@specifix.com> | 2011-02-27 21:20:06 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2011-02-27 21:20:06 +0000 |
commit | 7c3bf4874f7876a006ab8960934a219535013776 (patch) | |
tree | e3beff23b5945c93f1e8472fe7a08ed0c82d545e /gdb/gdbserver | |
parent | 79f30d2b834c4451e97d105b342dc6d666de7e3b (diff) | |
download | gdb-7c3bf4874f7876a006ab8960934a219535013776.tar.gz |
2011-02-26 Michael Snyder <msnyder@vmware.com>
* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 29b175fa98b..a8479b8c0ef 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 93f3570252c..7b8eba777c2 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -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) |