[Bug 261453] Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb()
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261453] Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261453] Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261453] Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261453] Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261453] Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb()"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Jan 2022 04:06:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261453 Bug ID: 261453 Summary: Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb() Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: zhou1615@umn.edu In ocs_hw_get_profile_list_cb(), ocs_malloc() is assigned to list and has a dereference after that, which could cause null pointer dereference on failure of allocation. Fix this bug by adding a check of list. This bug is found by a static analyzer, please advise. -- You are receiving this mail because: You are the assignee for the bug.