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

assets: improve precision checking

Public commit record

What the developer wrote

Authored by Mike Tolkachev

35/100 · Opaque
assets: improve precision checking
✓ Descriptive subject! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens how Blockstream Jade handles the 'precision' value in asset contracts for Liquid assets. Previously, a very large precision value could be accepted and later used to read past the end of an internal lookup table (POW_10), which could cause a crash or undefined behavior when displaying or signing a transaction. The patch caps precision at 8 and adds a compile-time check that the lookup table is sized correctly for that cap.

Recommended action

Treat this as a security hardening fix with likely crash/DoS relevance. Review whether any other call sites consume asset->precision without bounds checks, and verify that firmware update distribution covers devices that may process untrusted Liquid asset contracts.

Security signals we found

01

Out-of-bounds read mitigation: bounds-checking of user-controlled precision before indexing fixed-size POW_10 array

02

Integer truncation safety: explicit cast of validated precision to uint8_t after range check

03

Compile-time invariant enforcement: JADE_STATIC_ASSERT ties array size to ASSET_PRECISION_MAX

04

Input validation: parsing now rejects asset contracts with precision > 8 and logs the error

05

Potential DoS/crash vector in transaction signing/display path addressed

Risk score

Why this scored 59/100

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