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

wallet: print error, don't just abort, on unknown tags.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
wallet: print error, don't just abort, on unknown tags.

Lisa *told* me about this on review, and I ignored it. Fool: took an extra day to get the account.db which was triggering this so I could see the problem.

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

What changed, and why it matters

This commit fixes a crash during database migration. Previously, if the migration code encountered an unknown 'tag' value in the old account database, it would call abort() and terminate the program abruptly with no explanation. Now it calls db_fatal(), which prints a clear error message about the unknown tag before stopping. This is a robustness improvement that helps diagnose migration failures but does not by itself prevent them or create a security vulnerability.

Recommended action

No urgent action required. Treat as a normal code-quality/diagnostic improvement. If deploying, ensure migration logs capture db_fatal() output to diagnose any unknown tag issues in legacy account databases.

Security signals we found

01

Defensive hardening: replaces silent abort() with informative fatal error

02

Migration robustness improvement

03

No input validation bypass or memory safety issue visible in diff

Risk score

Why this scored 23/100

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