AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 17 Bitcoin

common: fix ubsan trigger in param test.

Public commit record

What the developer wrote

Authored by Rusty Russell

90/100 · Strong
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. But the test really does
want to see what happens when the callback is NULL, so workaround.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit fixes a test-only issue where a newer compiler's undefined-behavior sanitizer (UBSan) complained about a test that deliberately passes a NULL callback. The fix changes how the test constructs that NULL case so the sanitizer no longer flags it. It is not a security vulnerability in production code.

Recommended action

No security action required. Treat as a normal test-compatibility fix. If reviewing, confirm the new p_req_raw macro still exercises the same paramcheck_assert_failed code path.

Security signals we found

01

UndefinedBehaviorSanitizer warning in test code

02

NULL pointer arithmetic in macro expansion

03

Test-only workaround, no production code change

Risk score

Why this scored 17/100

Our methodology →
Potential impact 2/30
Exploitability 0/25
Stealth signal 1/15
Affected reach 1/15
Confidence 9/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.