changeset 3130:61f7368f98a7

6492109 acl(2) may allocate too much kernel memory for some arguments
author marks
date Thu, 16 Nov 2006 09:34:54 -0800
parents dcdb639d141d
children ef325e37ab22
files usr/src/uts/common/syscall/acl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/syscall/acl.c	Thu Nov 16 09:16:30 2006 -0800
+++ b/usr/src/uts/common/syscall/acl.c	Thu Nov 16 09:34:54 2006 -0800
@@ -316,7 +316,7 @@
 		break;
 
 	case ACE_SETACL:
-		if (nentries > (MAX_ACL_ENTRIES))
+		if (nentries < 1 || nentries > MAX_ACL_ENTRIES)
 			return (EINVAL);
 
 		if (aclbufp == NULL)