forked from Imagelibrary/rtems
2010-06-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1559/misc Coverity Id 16 * libmisc/monitor/mon-editor.c: Fix buffer overflow.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2010-06-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||
|
||||
PR 1559/misc
|
||||
Coverity Id 16
|
||||
* libmisc/monitor/mon-editor.c: Fix buffer overflow.
|
||||
|
||||
2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* rtems/include/rtems/rtems/object.h,
|
||||
|
||||
@@ -428,7 +428,7 @@ rtems_monitor_line_editor (
|
||||
if ((pos < end) && (end < RTEMS_COMMAND_BUFFER_SIZE))
|
||||
{
|
||||
int ch, bs;
|
||||
for (ch = end + 1; ch > pos; ch--)
|
||||
for (ch = end; ch > pos; ch--)
|
||||
buffer[ch] = buffer[ch - 1];
|
||||
fprintf(stdout,buffer + pos);
|
||||
for (bs = 0; bs < (end - pos + 1); bs++)
|
||||
|
||||
Reference in New Issue
Block a user