What changed, and why it matters
This commit adds a single type definition (`cx_err_t`) to a unit-test mock header so the test code compiles. It does not change any actual application code, cryptographic operations, or device behavior. There is no security relevance.
No security action needed; this is a test-only build fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds typedef uint32_t cx_err_t; to unit-tests/mock_includes/lcx_common.h, a mock header used only in unit tests. This aligns the mock with the real Ledger SDK’s cx_err_t type, fixing a compilation issue in tests. No firmware or runtime code is modified.
Changed components
unit-tests/mock_includes/lcx_common.hInspect captured patch +3 / −0
diff --git a/unit-tests/mock_includes/lcx_common.h b/unit-tests/mock_includes/lcx_common.h
index ab1253d..1914a26 100644
--- a/unit-tests/mock_includes/lcx_common.h
+++ b/unit-tests/mock_includes/lcx_common.h
@@ -41,6 +41,9 @@ typedef struct uint64_s uint64bits_t;
typedef uint64_t uint64bits_t;
#endif
+/** Type of error code */
+typedef uint32_t cx_err_t;
+
/**
* Some function take logical or of various flags. The follwing flags are
* globally defined:
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.