We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c6cc6 commit 521bb63Copy full SHA for 521bb63
core/src/main/java/org/bouncycastle/asn1/x509/Extensions.java
@@ -71,8 +71,10 @@ else if (obj != null)
71
private Extensions(
72
ASN1Sequence seq)
73
{
74
- // it's tempting to check there's at least one entry in the sequence. Don't!
75
- // It turns out there's quite a few empty extension blocks out there...
+ if (seq.size() == 0)
+ {
76
+ throw new IllegalArgumentException("empty extension sequence found");
77
+ }
78
79
Enumeration e = seq.getObjects();
80
0 commit comments