2010-06-22 Chris Johns <chrisj@rtems.org>

* startup/m68k-stub.c: PR 1539. Fix buffer overrun.
This commit is contained in:
Chris Johns
2010-06-22 11:23:22 +00:00
parent 654169dc50
commit 4713109128
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2010-06-22 Chris Johns <chrisj@rtems.org>
* startup/m68k-stub.c: PR 1539. Fix buffer overrun.
2010-04-30 Joel Sherrill <joel.sherrilL@OARcorp.com>
* include/bsp.h: Add BSP_SMALL_MEMORY.

View File

@@ -601,7 +601,7 @@ void getpacket(char *buffer)
count = 0;
/* now, read until a # or end of buffer is found */
while (count < BUFMAX) {
while (count < (BUFMAX - 1)) {
ch = getDebugChar() & 0x7f;
if (ch == '#') break;
checksum = checksum + ch;