cvs commit: src/sys/kern sysv_msg.c sysv_sem.c sysv_shm.c

Matthew Dillon dillon at
Sun Aug 3 10:12:16 PDT 2003

dillon      2003/08/03 10:11:36 PDT

  Modified files:
    sys/kern             sysv_msg.c sysv_sem.c sysv_shm.c 
  Explicitly use an unsigned index for 'which' in shmsys(), msgsys(), and
  semsys(), so the implications of the use of a negative index become obvious.
  Fix the misdocumented 'which' UAP argument, which is actually signed.
  Note: There is no security issue because sizeof() is unsigned but such
  non-explicit comparisons are a very dangerous way to code and this fixes
  Revision  Changes    Path
  1.11      +2 -2      src/sys/kern/sysv_msg.c
  1.11      +2 -2      src/sys/kern/sysv_sem.c
  1.10      +2 -2      src/sys/kern/sysv_shm.c

More information about the Commits mailing list