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)
Tue, Jan 13, 2:35 AM
Unknown Object (File)
Wed, Dec 31, 6:52 AM
Unknown Object (File)
Tue, Dec 30, 9:49 PM
Unknown Object (File)
Nov 28 2025, 5:44 AM
Unknown Object (File)
Nov 21 2025, 6:08 PM
Unknown Object (File)
Nov 21 2025, 3:54 AM
Unknown Object (File)
Nov 21 2025, 3:54 AM
Unknown Object (File)
Nov 21 2025, 3:53 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