You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
L3: Keystore-key-deleted race escapes as raw crash instead of KeystoreKeyLost #566
If the Keystore key is deleted between forExistingKey() and unwrap() inside VaultStore.unlockWithPin, the resulting KeyStoreException isn't caught, so it crashes the caller instead of mapping to UnlockOutcome.KeystoreKeyLost (the path that correctly routes the user to recovery-key unlock). Widen the catch to cover this case.
A correct, tested fix already exists in the now-closed PR #537 (split from #530) — see its diff. Rebase forward or reimplement following the same pattern.
Activity
fix(vaultstore): catch Keystore-key-deleted race during PIN unlock