Date: Mon, 10 Sep 2001 04:36:08 -0700 (PDT) From: Dima Dorfman <dd@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern sysv_sem.c Message-ID: <200109101136.f8ABa8r02333@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dd 2001/09/10 04:36:08 PDT Modified files: sys/kern sysv_sem.c Log: Make the `nsops' variable in `semop' unsigned. This prevents an overflow if uap->nsops (which is already unsigned) is over INT_MAX; consequently, the bounds check below becomes valid. Previously, if a value over INT_MAX was passed in uap->nsops, the bounds check wouldn't catch it, and the value would be used to compute copyin()'s third argument. Obtained from: NetBSD Revision Changes Path 1.35 +6 -6 src/sys/kern/sysv_sem.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109101136.f8ABa8r02333>