Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2022 04:06:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261453] Fix a possible Null pointer dereference in ocs_hw_get_profile_list_cb()
Message-ID:  <bug-261453-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261453

            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 failu=
re
of
allocation.

Fix this bug by adding a check of list.

This bug is found by a static analyzer, please advise.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261453-227>