Changeset 0b95fb8 in rtems


Ignore:
Timestamp:
Jun 21, 2010, 4:25:09 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
ad37630
Parents:
167c6ce
Message:

2010-06-21 Joel Sherrill <joel.sherrilL@…>

PR 1559/misc
Coverity Id 16

  • libmisc/monitor/mon-editor.c: Fix buffer overflow.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r167c6ce r0b95fb8  
     12010-06-21      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        PR 1559/misc
     4        Coverity Id 16
     5        * libmisc/monitor/mon-editor.c: Fix buffer overflow.
     6
    172010-06-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/libmisc/monitor/mon-editor.c

    r167c6ce r0b95fb8  
    429429              {
    430430                int ch, bs;
    431                 for (ch = end + 1; ch > pos; ch--)
     431                for (ch = end; ch > pos; ch--)
    432432                  buffer[ch] = buffer[ch - 1];
    433433                fprintf(stdout,buffer + pos);
Note: See TracChangeset for help on using the changeset viewer.