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)
Sat, Oct 11, 4:13 PM
Unknown Object (File)
Tue, Oct 7, 8:23 PM
Unknown Object (File)
Wed, Oct 1, 4:02 AM
Unknown Object (File)
Sep 10 2025, 8:59 AM
Unknown Object (File)
Aug 17 2025, 2:28 PM
Unknown Object (File)
Aug 6 2025, 7:27 PM
Unknown Object (File)
Jul 5 2025, 12:03 AM
Unknown Object (File)
Jun 18 2025, 7:43 PM
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 Not Applicable
Unit
Tests Not Applicable

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.