aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-27 21:20:06 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-27 21:20:06 +0000
commit0adea5f702d7d2a2e4441c18556402ba415e9c2e (patch)
tree3f3f39c7b3c1468e4be010afca5da4afd72f4b95 /gdb/gdbserver
parent35f5825a72aa7f4fcddc06f6505f3ab3f39951ff (diff)
downloadgdb-0adea5f702d7d2a2e4441c18556402ba415e9c2e.zip
gdb-0adea5f702d7d2a2e4441c18556402ba415e9c2e.tar.gz
gdb-0adea5f702d7d2a2e4441c18556402ba415e9c2e.tar.bz2
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/ChangeLog2
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 29b175f..a8479b8 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 93f3570..7b8eba7 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)