home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0028 < prev    next >
Encoding:
Text File  |  1981-08-05  |  619 b   |  17 lines

  1. Autzoo.856
  2. net.v7bugs,NET.v7bugs
  3. utzoo!henry
  4. Wed Aug  5 21:27:30 1981
  5. ioctl speed-code checking
  6. Nowhere in the V7 kernel does anything ever check that the speed codes
  7. handed to a tty ioctl are valid (i.e. in the range 0..15).  Quite by
  8. accident, all this will do to a DH or a DZ is screw up the line in
  9. question.  But there is obviously room for all sorts of trouble here.
  10. The simplest fix is to change the lines in dev/tty.c/ttioccomm(), about
  11. line 236, that read:
  12.         tp->t_ispeed = iocb.ioc_ispeed;
  13.         tp->t_ospeed = iocb.ioc_ospeed;
  14. to read:
  15.         tp->t_ispeed = iocb.ioc_ispeed&017;
  16.         tp->t_ospeed = iocb.ioc_ospeed&017;
  17.