| 4bcc5a3c | 27-Jan-2026 |
Bojan Novković <bnovkov@FreeBSD.org> |
btree/bt_seq.c: Fix two NULL pointer dereferences
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 k
btree/bt_seq.c: Fix two NULL pointer dereferences
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
show more ...
|
| f362c952 | 13-Feb-2024 |
rilysh <nightquick@proton.me> |
libc(bt_utils.c): fix "contiguous" spelling
From "contigous" to "contiguous".
Signed-off-by: rilysh <nightquick@proton.me> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull
libc(bt_utils.c): fix "contiguous" spelling
From "contigous" to "contiguous".
Signed-off-by: rilysh <nightquick@proton.me> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1119
show more ...
|