mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
Fix a crash when parsing long key IDs (#959)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -257,8 +257,8 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB
|
|||||||
it.matches("[a-fA-F0-9]{16}".toRegex())
|
it.matches("[a-fA-F0-9]{16}".toRegex())
|
||||||
}
|
}
|
||||||
if (maybeLongKeyId != null) {
|
if (maybeLongKeyId != null) {
|
||||||
val keyId = maybeLongKeyId.toULong()
|
val keyId = maybeLongKeyId.toULong(16)
|
||||||
return GpgIdentifier.KeyId(maybeLongKeyId.toLong())
|
return GpgIdentifier.KeyId(keyId.toLong())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Match fingerprints:
|
// Match fingerprints:
|
||||||
|
Reference in New Issue
Block a user