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)
Mon, Apr 27, 9:03 AM
Unknown Object (File)
Fri, Apr 24, 6:56 PM
Unknown Object (File)
Tue, Apr 21, 11:26 AM
Unknown Object (File)
Tue, Apr 14, 12:02 AM
Unknown Object (File)
Sun, Apr 12, 6:18 PM
Unknown Object (File)
Sun, Apr 12, 10:29 AM
Unknown Object (File)
Sun, Apr 12, 12:23 AM
Unknown Object (File)
Sat, Apr 11, 10:49 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