mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
2001-08-10 Orjan Friberg <orjanf@axis.com>
* remote.c (read_frame): Correct off-by-one error in condition.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user