mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 12:39:59 +00:00
* 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.
This commit is contained in:
parent
7abfe01489
commit
295bf0ffc7
@ -1,3 +1,11 @@
|
||||
2006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* frame.h (set_current_sal_from_frame): New prototype.
|
||||
|
@ -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 == '$')
|
||||
|
@ -605,7 +605,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 == '$')
|
||||
|
@ -553,7 +553,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 == '$')
|
||||
|
@ -403,7 +403,7 @@ retry:
|
||||
count = 0;
|
||||
|
||||
/* now, read until a # or end of buffer is found */
|
||||
while (count < BUFMAX)
|
||||
while (count < BUFMAX - 1)
|
||||
{
|
||||
ch = getDebugChar ();
|
||||
if (ch == '$')
|
||||
|
@ -306,7 +306,7 @@ retry:
|
||||
count = 0;
|
||||
|
||||
/* now, read until a # or end of buffer is found */
|
||||
while (count < BUFMAX)
|
||||
while (count < BUFMAX - 1)
|
||||
{
|
||||
ch = getDebugChar ();
|
||||
if (ch == '$')
|
||||
|
Loading…
Reference in New Issue
Block a user