Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit 55cec5d

Browse files
committed
Merge branch '4077-add-RUNTIME_CHECK-around-wrap' into 'main'
Ensure "wrap" variable is non-NULL Closes #4077 See merge request isc-projects/bind9!7948
2 parents 896cf63 + 1fe5c00 commit 55cec5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/isc/thread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ struct thread_wrap {
5757
static struct thread_wrap *
5858
thread_wrap(isc_threadfunc_t func, void *arg) {
5959
struct thread_wrap *wrap = malloc(sizeof(*wrap));
60+
RUNTIME_CHECK(wrap != NULL);
6061
*wrap = (struct thread_wrap){
6162
.func = func,
6263
.arg = arg,

0 commit comments

Comments
 (0)