Skip to content

Commit 868b6ab

Browse files
committed
common: fix ubsan trigger in param test.
``` common/test/run-param.c:381:8: runtime error: applying zero offset to null pointer SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior common/test/run-param.c:381:8 ``` Probably because CI now on 24.04, so more recent clang. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 2bba6f0 commit 868b6ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/test/run-param.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static void bad_programmer(void)
378378

379379
paramcheck_assert_failed = false;
380380
param(cmd, j->buffer, j->toks,
381-
p_req("u64", (param_cbx) NULL, NULL), NULL);
381+
p_req("u64", param_u64, NULL), NULL);
382382
assert(paramcheck_assert_failed);
383383

384384
/* Add required param after optional */

0 commit comments

Comments
 (0)