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

fix: TARGET_* constants propagation

Public commit record

What the developer wrote

Authored by Ilya Artemov

47/100 · Thin
fix: TARGET_* constants propagation
✓ Descriptive subject✓ Uses a recognizable type or scope! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a build-configuration problem in Ledger's Bitcoin app. Two source files now explicitly include the SDK header that defines TARGET_* constants (such as TARGET_NANOX, TARGET_STAX, TARGET_FLEX), and the build adds the correct include path for unit tests. Without these constants, the code could silently fall back to default values, potentially changing behavior on different Ledger devices. The change also adds compile-time #error checks so the problem cannot happen silently again.

Recommended action

Verify that all other source files using TARGET_* macros include bolos_target.h or inherit it from a common header, and that CI builds for each supported device (Nano S/S+, X, Stax, Flex) fail if the constants are missing. Treat this as a build-hardening fix rather than an active vulnerability.

Security signals we found

01

Conditional compilation depends on device-specific TARGET_* macros

02

Missing SDK header could cause silent fallback to default code paths

03

Compile-time guard added to fail closed if constants are unavailable

04

Build system include path corrected for unit-test compilation

05

No direct memory-safety or cryptographic bug visible in diff

Risk score

Why this scored 35/100

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