Changeset 0e4e56b in rtems


Ignore:
Timestamp:
Aug 19, 2008, 8:20:34 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
378bea5
Parents:
cc4c524b
Message:

2008-08-19 Cedric Aubert <cedric_aubert@…>

PR 500/misc

  • libcsupport/src/termios.c: Avoid potential buffer overflow.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rcc4c524b r0e4e56b  
     12008-08-19      Cedric Aubert <cedric_aubert@yahoo.fr>
     2
     3        PR 500/misc
     4        * libcsupport/src/termios.c: Avoid potential buffer overflow.
     5
    162008-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/libcsupport/src/termios.c

    rcc4c524b r0e4e56b  
    10221022                 * Process characters read from raw queue
    10231023                 */
    1024                 while (tty->rawInBuf.Head != tty->rawInBuf.Tail) {
     1024                while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
     1025                       (tty->ccount < (CBUFSIZE-1))) {
    10251026                        unsigned char c;
    10261027                        unsigned int newHead;
Note: See TracChangeset for help on using the changeset viewer.