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

plugins/bkpr/test/run-recorder: don't hand NULL cmd.

Public commit record

What the developer wrote

Authored by Rusty Russell

75/100 · Adequate
plugins/bkpr/test/run-recorder: don't hand NULL cmd.

ubsan complains that we declared a function not to take NULL.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
The short version

What changed, and why it matters

This is a fix inside a test program for the bookkeeping plugin. The test was passing NULL (an empty pointer) to functions that are declared to never accept NULL, which caused the Undefined Behavior Sanitizer (UBSan) to complain during testing. The change creates a dummy command object and passes it instead. It does not affect the actual Core Lightning node software that users run.

Recommended action

No production action required. Treat as a normal test-quality/CI hygiene patch. If reviewing, confirm that the dummy cmd object is properly allocated and freed or accounted for in the test's tal context to avoid a minor memory leak in the test runner.

Security signals we found

01

Undefined Behavior Sanitizer (UBSan) non-null attribute violation in test code

02

NULL pointer replaced with allocated dummy object in test harness only

03

No changes to production plugin or daemon code

Risk score

Why this scored 15/100

Our methodology →
Potential impact 1/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 9/10
Evidence quality 5/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.