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
F169099537: D13596.id36944.diff
Mon, Aug 31, 10:08 AM
F169071746: D13596.id36940.diff
Mon, Aug 31, 8:09 AM
Unknown Object (File)
Sun, Aug 30, 2:26 PM
Unknown Object (File)
Sun, Aug 30, 1:06 PM
Unknown Object (File)
Wed, Aug 26, 8:12 AM
Unknown Object (File)
Tue, Aug 25, 7:54 PM
Unknown Object (File)
Tue, Aug 25, 10:44 AM
Unknown Object (File)
Tue, Aug 25, 10:02 AM
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