diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:44:12 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:44:12 +0000 |
commit | 295bf0ffc74b3e51101f5b1765dd5f5e2405bd02 (patch) | |
tree | 4f6827c57fb13e35e5fdd3c1ad9c3283727f9c67 /gdb/i386-stub.c | |
parent | 7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288 (diff) | |
download | binutils-gdb-295bf0ffc74b3e51101f5b1765dd5f5e2405bd02.tar.gz |
* i386-stub.c (getpacket): Fix array overflow.
* m32r-stub.c (getpacket): Likewise.
* m68k-stub.c (getpacket): Likewise.
* sh-stub.c (getpacket): Likewise.
* sparc-stub.c (getpacket): Likewise.
Diffstat (limited to 'gdb/i386-stub.c')
-rw-r--r-- | gdb/i386-stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-stub.c b/gdb/i386-stub.c index 1251567e912..6b91296291f 100644 --- a/gdb/i386-stub.c +++ b/gdb/i386-stub.c @@ -474,7 +474,7 @@ getpacket (void) count = 0; /* now, read until a # or end of buffer is found */ - while (count < BUFMAX) + while (count < BUFMAX - 1) { ch = getDebugChar (); if (ch == '$') |