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

test(miniscript): Check for depth rather than script size

Public commit record

What the developer wrote

Authored by Hodlinator

100/100 · Strong
test(miniscript): Check for depth rather than script size

CI failure due to default ~Node() implementation has been confirmed on Windows native, MacOS native, 32-bit ARM, ASan+LSan+UBSan+integer, i686, TSan, MSan. (Not on Alpine as that runs without CI_LIMIT_STACK_SIZE).

Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
Co-authored-by: Lőrinc <pap.lorinc@gmail.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
The short version

What changed, and why it matters

This is a test-only change in Bitcoin Core's miniscript unit tests. It swaps one internal test assertion (checking script size) for another (checking tree depth) so that the test can reliably detect stack-unsafe destructor implementations under CI's reduced stack size. It does not change production code, consensus rules, network behavior, or wallet operations.

Recommended action

No security action required. Treat as normal test maintenance. If reviewing related destructor changes, ensure Node destructors are stack-safe under deep recursion, but that concern is outside this commit's scope.

Security signals we found

01

No production code changed

02

Test-only modification

03

No cryptographic, consensus, P2P, or wallet changes

04

Comment references stack-unsafe destructor behavior in test environment only

Risk score

Why this scored 12/100

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