Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughReplaces scattered early returns across multiple crypto modules with a uniform pattern: introduce a local status/return variable (initialized to failure), set it on success, and jump to a centralized Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes 🚥 Pre-merge checks | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| model | device_test | click_test | persistence_test |
|---|---|---|---|
| T2T1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
| T3B1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
| T3T1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
| T3W1 | test(all) main(all) ![]() |
test(all) main(all) ![]() |
test(all) main(all) ![]() |
Latest CI run: 22671811162
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crypto/cardano.c (1)
150-156: Consider zeroingctxandzl8in cleanup for completeness.The HMAC context
ctx(line 115) and thezl8buffer (line 120) are alsoLOCAL_CONFIDENTIALand contain sensitive intermediate state, but they are not included in the cleanup section. For consistency with the defensive cleanup pattern applied throughout this PR, consider adding:cleanup: // making sure to wipe our memory memzero(z, sizeof(z)); memzero(data, sizeof(data)); memzero(priv_key, sizeof(priv_key)); memzero(res_key, sizeof(res_key)); + memzero(zl8, sizeof(zl8)); + memzero(&ctx, sizeof(ctx)); return ret;🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@crypto/cardano.c` around lines 150 - 156, Add zeroing of the HMAC context and zl8 buffer in the cleanup section: call memzero(&ctx, sizeof(ctx)) (or memzero(ctx, sizeof *ctx) if ctx is a pointer) and memzero(zl8, sizeof(zl8)) before returning; update the cleanup block that currently memzeros z, data, priv_key, res_key to also wipe ctx and zl8 to ensure all LOCAL_CONFIDENTIAL variables are cleared.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@crypto/cardano.c`:
- Around line 150-156: Add zeroing of the HMAC context and zl8 buffer in the
cleanup section: call memzero(&ctx, sizeof(ctx)) (or memzero(ctx, sizeof *ctx)
if ctx is a pointer) and memzero(zl8, sizeof(zl8)) before returning; update the
cleanup block that currently memzeros z, data, priv_key, res_key to also wipe
ctx and zl8 to ensure all LOCAL_CONFIDENTIAL variables are cleared.
This comment was marked as resolved.
This comment was marked as resolved.
[no changelog]
[no changelog]
[no changelog]
[no changelog]
585ef07 to
db60f71
Compare




































No description provided.