cvs commit: src/sys/kern sysv_msg.c sysv_sem.c sysv_shm.c
Matthew Dillon
dillon at crater.dragonflybsd.org
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
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
More information about the Commits
mailing list