mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2010-06-22 Chris Johns <chrisj@rtems.org>
* startup/m68k-stub.c: PR 1539. Fix buffer overrun.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user