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

libplugin: make jsonrpc_set_datastore_binary() take an explicit length.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
libplugin: make jsonrpc_set_datastore_binary() take an explicit length.

This means it doesn't have to be a tal ptr.

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

What changed, and why it matters

This is a small internal code cleanup in Core Lightning's plugin helper library. It changes a helper function so callers pass the data length explicitly, rather than the helper measuring it itself. The commit message frames this as a convenience change, not a security fix. There is no direct evidence in the commit of an exploitable vulnerability, but the change removes a class of potential bugs where a non-tal pointer could be mis-measured.

Recommended action

Treat as a defensive hardening/cleanup commit. Review other call sites of json_add_hex_talarr() across the codebase for similar assumptions, and ensure plugin authors know the new binary helper requires an explicit length. No urgent security response is indicated by this commit alone.

Security signals we found

01

API change removes implicit tal-length dependency for binary datastore values

02

Call sites updated to use tal_bytelen() explicitly

03

No direct security claim in commit message or diff

04

Potential latent bug class (incorrect length for non-tal binary pointer) is addressed

Risk score

Why this scored 16/100

Our methodology →
Potential impact 3/30
Exploitability 2/25
Stealth signal 2/15
Affected reach 3/15
Confidence 4/10
Evidence quality 2/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.