Page MenuHomeFreeBSD

Reverse the check to allocate the buffer if cached pointer is NULL.
ClosedPublic

Authored by kan on Dec 23 2017, 4:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 3, 8:51 AM
Unknown Object (File)
Wed, Oct 1, 1:48 PM
Unknown Object (File)
Wed, Oct 1, 11:39 AM
Unknown Object (File)
Tue, Sep 30, 10:03 AM
Unknown Object (File)
Fri, Sep 26, 10:27 AM
Unknown Object (File)
Fri, Sep 26, 1:41 AM
Unknown Object (File)
Sat, Sep 20, 6:34 PM
Unknown Object (File)
Fri, Sep 19, 11:30 PM
Subscribers

Details

Summary

The code previously would allocate the buffer only it if were NOT
NULL. Otherwise it would happily pass NULL pointer to copyinstr
function below.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable