svn commit: r345853 - head/usr.bin/rctl

Enji Cooper yaneurabeya at gmail.com
Thu Apr 4 03:13:03 UTC 2019


> On Apr 3, 2019, at 1:37 PM, Mateusz Guzik <mjg at FreeBSD.org> 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


More information about the svn-src-head mailing list