PERFORCE change 123688 for review
Roman Divacky
rdivacky at FreeBSD.org
Wed Jul 18 14:43:26 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123688
Change 123688 by rdivacky at 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);
More information about the p4-projects
mailing list