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, Apr 19, 8:40 PM
Unknown Object (File)
Tue, Apr 2, 3:11 PM
Unknown Object (File)
Mar 7 2024, 7:52 PM
Unknown Object (File)
Feb 29 2024, 4:01 AM
Unknown Object (File)
Jan 22 2024, 10:09 AM
Unknown Object (File)
Dec 22 2023, 11:21 PM
Unknown Object (File)
Dec 21 2023, 2:49 PM
Unknown Object (File)
Dec 16 2023, 1:31 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