Page MenuHomeFreeBSD

loader: efi devpath api usage should be more aware of NULL pointers
ClosedPublic

Authored by tsoome on Jan 16 2017, 9:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 11:52 PM
Unknown Object (File)
Thu, Nov 20, 11:52 PM
Unknown Object (File)
Thu, Nov 20, 11:51 PM
Unknown Object (File)
Thu, Nov 20, 11:48 PM
Unknown Object (File)
Sat, Nov 8, 11:24 PM
Unknown Object (File)
Wed, Nov 5, 7:21 AM
Unknown Object (File)
Mon, Oct 27, 8:24 PM
Unknown Object (File)
Fri, Oct 24, 2:54 AM
Subscribers
None

Details

Summary

As the efi_devpath_last_node() and efi_devpath_trim() can return NULL
pointers, the consumers of this API should check the the NULL pointers.

Same for efinet_dev_init() using calloc().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6807
Build 7015: arc lint + arc unit

Event Timeline

tsoome retitled this revision from to loader: efi devpath api usage should be more aware of NULL pointers.
tsoome updated this object.
tsoome edited the test plan for this revision. (Show Details)
tsoome added reviewers: imp, allanjude, jhb.
jhb edited edge metadata.
This revision is now accepted and ready to land.Jan 17 2017, 7:03 PM
allanjude edited edge metadata.

Approved for commit

This revision was automatically updated to reflect the committed changes.