diff options
author | Orjan Friberg <orjanf@axis.com> | 2001-08-10 09:59:33 +0000 |
---|---|---|
committer | Orjan Friberg <orjanf@axis.com> | 2001-08-10 09:59:33 +0000 |
commit | fb6e5c55206f732aac9f05cddacb29e46f43e5c0 (patch) | |
tree | 1a275b9641371aec34227e06a9e23c6f15ee1ed5 | |
parent | cc55aec9b76ca04bc0913b94c133b2851ec05224 (diff) | |
download | gdb-fb6e5c55206f732aac9f05cddacb29e46f43e5c0.zip gdb-fb6e5c55206f732aac9f05cddacb29e46f43e5c0.tar.gz gdb-fb6e5c55206f732aac9f05cddacb29e46f43e5c0.tar.bz2 |
2001-08-10 Orjan Friberg <orjanf@axis.com>
* remote.c (read_frame): Correct off-by-one error in condition.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/remote.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ff0205f..5e6b10b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2001-08-10 Orjan Friberg <orjanf@axis.com> + + * remote.c (read_frame): Correct off-by-one error in condition. + 2001-08-08 Don Howard <dhoward@redhat.com> * stabsread.c (read_type): Add support for const and volatile diff --git a/gdb/remote.c b/gdb/remote.c index be90b20..ecf9afc 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -4189,7 +4189,7 @@ read_frame (char *buf, if (repeat > 0 && repeat <= 255 && bc > 0 - && bc + repeat < sizeof_buf - 1) + && bc + repeat - 1 < sizeof_buf - 1) { memset (&buf[bc], buf[bc - 1], repeat); bc += repeat; |