diff options
| author | Bojan Novković <bnovkov@FreeBSD.org> | 2026-01-27 15:13:13 +0000 |
|---|---|---|
| committer | Bojan Novković <bnovkov@FreeBSD.org> | 2026-01-27 16:47:23 +0000 |
| commit | 4bcc5a3cdc05f217a8adf2f5f97a2e922663f741 (patch) | |
| tree | f874fe53282374474f816a9a60e419ddeb74c6dd /sys/dev/mfi/(public-mirror) | |
| parent | af9d11303c9bba56d78c79d2b4832f3549f4f0d3 (diff) | |
This change fixes two NULL pointer dereferences caused by the
__bt_first function.
The first was caused by returning 0 (i.e., RET_SUCCESS) when a key
was not found, causing the caller to dereference an uninitalized
or NULL pointer. The second one was caused by an if statment clobbering
a local variable with a function call result that might be NULL.
Reported by: clang-tidy
Sponsored by: Klara, Inc.
Reviewed by: markj
Obtained from: https://github.com/apple-oss-distributions/libc (partially)
Differential Revision: https://reviews.freebsd.org/D54905
Diffstat (limited to 'sys/dev/mfi/(public-mirror)')
0 files changed, 0 insertions, 0 deletions
