Date: Wed, 18 Jul 2007 14:43:25 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123688 for review Message-ID: <200707181443.l6IEhPOu018151@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123688 Change 123688 by rdivacky@rdivacky_witten on 2007/07/18 14:42:33 Check for size argument being positive in epoll_create. Affected files ... .. //depot/projects/soc2007/rdivacky/linux_epoll/sys/compat/linux/linux_epoll.c#7 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_epoll/sys/compat/linux/linux_epoll.c#7 (text+ko) ==== @@ -52,6 +52,8 @@ { struct kqueue_args k_args; + if (args->size <= 0) + return (EINVAL); /* XXX: args->size is ignored. Linux ignores it as well. */ return kqueue(td, &k_args);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707181443.l6IEhPOu018151>