Only use the ABI compat shim for vfs.bufspace if the old buffer is smaller
than a long. PR: amd64/134786 Submitted by: Emil Mikulic emikulic| gmail MFC after: 3 days
This commit is contained in:
parent
fe8ccf4f67
commit
35ba8bce41
@ -293,7 +293,7 @@ sysctl_bufspace(SYSCTL_HANDLER_ARGS)
|
||||
long lvalue;
|
||||
int ivalue;
|
||||
|
||||
if (sizeof(int) == sizeof(long) || req->oldlen == sizeof(long))
|
||||
if (sizeof(int) == sizeof(long) || req->oldlen >= sizeof(long))
|
||||
return (sysctl_handle_long(oidp, arg1, arg2, req));
|
||||
lvalue = *(long *)arg1;
|
||||
if (lvalue > INT_MAX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user