confirm-gesture: extend active duration
What changed, and why it matters
This commit changes the BitBox02 hardware wallet's on-screen confirmation gesture. Previously, the 'confirm' gesture was considered active only while the user was touching the top of the screen. After the change, it also stays active while a bottom-arrow animation is still sliding in. The stated goal is to prevent accidental bottom-tap confirmations and to avoid a visual glitch where the confirm triangle blends into the keyboard. The change is a one-line UI timing/behavior fix, not a cryptographic or memory-safety patch.
Treat as a low-severity UX/hardening fix. Review the gesture state machine to ensure the extended active window cannot be abused to bypass confirmation, and verify that bottom_arrow_slidein eventually reaches zero under all error paths. No urgent security response is indicated by the diff alone.
Security signals we found
UI gesture timing change
Potential accidental transaction confirmation mitigation
No cryptographic, memory-safety, or authentication changes
Single-line boolean condition extension
Evidence from the diff
In src/ui/components/confirm_gesture.c, confirm_gesture_is_active() now returns true when either active_top is set OR bottom_arrow_slidein is non-zero. This extends the window during which the gesture is considered active, likely keeping the top-touch confirmation sensitive while the bottom arrow is still animating into view. The patch is minimal and addresses a UI race/timing issue rather than a buffer overflow, injection, or cryptographic flaw.
Changed components
src/ui/components/confirm_gesture.cBitBox02 on-device confirmation gesture UIInspect captured patch +1 / −1
diff --git a/src/ui/components/confirm_gesture.c b/src/ui/components/confirm_gesture.c
index 81fbbd8..8ad3603 100644
--- a/src/ui/components/confirm_gesture.c
+++ b/src/ui/components/confirm_gesture.c
@@ -43,7 +43,7 @@ typedef struct {
bool confirm_gesture_is_active(component_t* component)
{
confirm_data_t* data = (confirm_data_t*)component->data;
- return data->active_top;
+ return data->active_top || data->bottom_arrow_slidein != 0;
}
/**
Why this scored 37/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.