Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152741507
D7682.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
804 B
Referenced Files
None
Subscribers
None
D7682.id.diff
View Options
Index: head/sys/security/audit/audit_syscalls.c
===================================================================
--- head/sys/security/audit/audit_syscalls.c
+++ head/sys/security/audit/audit_syscalls.c
@@ -299,12 +299,12 @@
case A_OLDSETQCTRL:
case A_SETQCTRL:
if (uap->length == sizeof(udata.au_qctrl64)) {
+ /* NB: aq64_minfree is unsigned unlike aq_minfree. */
if ((udata.au_qctrl64.aq64_hiwater > AQ_MAXHIGH) ||
(udata.au_qctrl64.aq64_lowater >=
udata.au_qctrl.aq_hiwater) ||
(udata.au_qctrl64.aq64_bufsz > AQ_MAXBUFSZ) ||
- (udata.au_qctrl64.aq64_minfree > 100) ||
- (udata.au_qctrl64.aq64_minfree < 0))
+ (udata.au_qctrl64.aq64_minfree > 100))
return (EINVAL);
audit_qctrl.aq_hiwater =
(int)udata.au_qctrl64.aq64_hiwater;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 17, 8:15 PM (8 h, 26 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31678204
Default Alt Text
D7682.id.diff (804 B)
Attached To
Mode
D7682: Don't check aq64_minfree which is unsigned for negative values.
Attached
Detach File
Event Timeline
Log In to Comment