aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mfi/(public-mirror)
diff options
context:
space:
mode:
authorBojan Novković <bnovkov@FreeBSD.org>2026-01-27 15:13:13 +0000
committerBojan Novković <bnovkov@FreeBSD.org>2026-01-27 16:47:23 +0000
commit4bcc5a3cdc05f217a8adf2f5f97a2e922663f741 (patch)
treef874fe53282374474f816a9a60e419ddeb74c6dd /sys/dev/mfi/(public-mirror)
parentaf9d11303c9bba56d78c79d2b4832f3549f4f0d3 (diff)
btree/bt_seq.c: Fix two NULL pointer dereferencesHEADmain
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