mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-29 10:32:08 +01:00
Fix IOOB in Verification.fromString()
This commit is contained in:
parent
5d04bb965b
commit
f5e34bce6c
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ public class Verification {
|
|||
throw new IllegalArgumentException("Verification must be of the format 'UTC-DATE OpenPGPFingerprint OpenPGPFingerprint'");
|
||||
}
|
||||
|
||||
if (split.length == 3) {
|
||||
return new Verification(UTCUtil.parseUTCDate(split[0]),
|
||||
split[1], // key FP
|
||||
split[2] // cert FP
|
||||
);
|
||||
}
|
||||
|
||||
SignatureMode mode = null;
|
||||
int index = 3;
|
||||
if (split[index].startsWith(MODE)) {
|
||||
|
|
Loading…
Reference in a new issue