forked from Imagelibrary/rtems
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>
|
2010-04-30 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||||
|
|
||||||
* include/bsp.h: Add BSP_SMALL_MEMORY.
|
* include/bsp.h: Add BSP_SMALL_MEMORY.
|
||||||
|
|||||||
@@ -601,7 +601,7 @@ void getpacket(char *buffer)
|
|||||||
count = 0;
|
count = 0;
|
||||||
|
|
||||||
/* now, read until a # or end of buffer is found */
|
/* now, read until a # or end of buffer is found */
|
||||||
while (count < BUFMAX) {
|
while (count < (BUFMAX - 1)) {
|
||||||
ch = getDebugChar() & 0x7f;
|
ch = getDebugChar() & 0x7f;
|
||||||
if (ch == '#') break;
|
if (ch == '#') break;
|
||||||
checksum = checksum + ch;
|
checksum = checksum + ch;
|
||||||
|
|||||||
Reference in New Issue
Block a user