aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-03-30 16:44:12 +0000
committerDaniel Jacobowitz <drow@false.org>2006-03-30 16:44:12 +0000
commit295bf0ffc74b3e51101f5b1765dd5f5e2405bd02 (patch)
tree4f6827c57fb13e35e5fdd3c1ad9c3283727f9c67 /gdb
parent7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288 (diff)
downloadgdb-295bf0ffc74b3e51101f5b1765dd5f5e2405bd02.zip
gdb-295bf0ffc74b3e51101f5b1765dd5f5e2405bd02.tar.gz
gdb-295bf0ffc74b3e51101f5b1765dd5f5e2405bd02.tar.bz2
* 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')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/i386-stub.c2
-rw-r--r--gdb/m32r-stub.c2
-rw-r--r--gdb/m68k-stub.c2
-rw-r--r--gdb/sh-stub.c2
-rw-r--r--gdb/sparc-stub.c2
6 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 87c7974..799f737 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/i386-stub.c b/gdb/i386-stub.c
index 1251567..6b91296 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 == '$')
diff --git a/gdb/m32r-stub.c b/gdb/m32r-stub.c
index c7033ea..4d54f72 100644
--- a/gdb/m32r-stub.c
+++ b/gdb/m32r-stub.c
@@ -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 == '$')
diff --git a/gdb/m68k-stub.c b/gdb/m68k-stub.c
index 54e06b1..4ef4069 100644
--- a/gdb/m68k-stub.c
+++ b/gdb/m68k-stub.c
@@ -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 == '$')
diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c
index bdd9e50..76c98a5 100644
--- a/gdb/sh-stub.c
+++ b/gdb/sh-stub.c
@@ -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 == '$')
diff --git a/gdb/sparc-stub.c b/gdb/sparc-stub.c
index 1e6298a..c12d436 100644
--- a/gdb/sparc-stub.c
+++ b/gdb/sparc-stub.c
@@ -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 == '$')