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

lightningd: try harder to ensure uniqueness in --dev-save-plugin-io names.

Public commit record

What the developer wrote

Authored by Rusty Russell

85/100 · Strong
lightningd: try harder to ensure uniqueness in --dev-save-plugin-io names.

Incorporate a time: this covers the restart case as well. And make it time_mono(),
which doesn't get overridden when we override normal wall time.

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

What changed, and why it matters

This commit fixes a minor developer-only bug where a special diagnostic flag (--dev-save-plugin-io) could reuse filenames across internal restarts, causing file creation to fail. It adds a startup timestamp to filenames so they stay unique. This flag is not used in production and the failure mode is a noisy error, not a security vulnerability.

Recommended action

No security action required. Treat as a normal code-quality/test fix. If running with --dev-save-plugin-io during internal restart tests, update to this commit to avoid spurious failures.

Security signals we found

01

Fixes a filename collision in a developer-only diagnostic feature

02

Uses O_EXCL to prevent overwriting existing files

03

No privilege boundary crossed; no untrusted input used in filename

04

No cryptographic, authentication, or network implications

Risk score

Why this scored 18/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 8/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.