DragonFly BSD
DragonFly commits List (threaded) for 2003-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 Aug 2003 10:11:36 -0700 (PDT)

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

  Modified files:
    sys/kern             sysv_msg.c sysv_sem.c sysv_shm.c 
  Log:
  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
  that.
  
  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




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]