mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
2011-02-26 Michael Snyder <msnyder@vmware.com>
* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user