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, Nov 28, 5:44 AM
Unknown Object (File)
Fri, Nov 21, 6:08 PM
Unknown Object (File)
Fri, Nov 21, 3:54 AM
Unknown Object (File)
Fri, Nov 21, 3:54 AM
Unknown Object (File)
Fri, Nov 21, 3:53 AM
Unknown Object (File)
Fri, Nov 21, 3:52 AM
Unknown Object (File)
Wed, Nov 19, 2:20 PM
Unknown Object (File)
Nov 2 2025, 12:52 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 13757
Build 13972: arc lint + arc unit