Changeset 94a4865 in rtems


Ignore:
Timestamp:
Mar 27, 2017, 8:30:23 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b7262b2
Parents:
1c6926c1
git-author:
Sebastian Huber <sebastian.huber@…> (03/27/17 08:30:23)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/27/17 08:31:04)
Message:

termios: Avoid invalid memory access

Update #2897.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/termios.c

    r1c6926c1 r94a4865  
    848848  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
    849849  rtems_status_code sc;
    850   int flags = *((int *)args->buffer);
     850  int flags;
    851851
    852852  args->ioctl_return = 0;
     
    921921
    922922  case TIOCFLUSH:
     923    flags = *((int *)args->buffer);
     924
    923925    if (flags == 0) {
    924926      flags = FREAD | FWRITE;
Note: See TracChangeset for help on using the changeset viewer.