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
F111636374: D9203.diff
Thu, Mar 6, 8:18 AM
Unknown Object (File)
Mon, Feb 17, 4:41 AM
Unknown Object (File)
Jan 20 2025, 1:37 AM
Unknown Object (File)
Nov 23 2024, 11:36 AM
Unknown Object (File)
Nov 19 2024, 12:46 AM
Unknown Object (File)
Oct 2 2024, 2:22 AM
Unknown Object (File)
Sep 21 2024, 4:57 AM
Unknown Object (File)
Sep 16 2024, 10:42 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.