> On Apr 3, 2019, at 1:37 PM, Mateusz Guzik <[email protected]> wrote:
> 
> Author: mjg
> Date: Wed Apr  3 20:37:14 2019
> New Revision: 345853
> URL: https://svnweb.freebsd.org/changeset/base/345853
> 
> Log:
>  rctl: fix sysctl kern.racct.enable use after r341182
> 
>  The value was changed from int to bool. Since the new type
>  is smaller, the rest of the variable in the caller was left
>  unitialized.

I hit a bug like this recently with capsicum-test. Do you think it makes sense 
to purge all of the memory or return -1/set EINVAL for reasons similar to this 
for newp?

     [EINVAL]           A non-null newp is given and its specified length in
                        newlen is too large or too small.

Thanks!
-Enji
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to