mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-25 16:42:07 +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'");
|
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;
|
SignatureMode mode = null;
|
||||||
int index = 3;
|
int index = 3;
|
||||||
if (split[index].startsWith(MODE)) {
|
if (split[index].startsWith(MODE)) {
|
||||||
|
|
Loading…
Reference in a new issue