Skip to content

Commit 8d2d9d4

Browse files
author
gefeili
committed
Fix the issue in OpenPGPSignature
1 parent 60afb39 commit 8d2d9d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pg/src/main/java/org/bouncycastle/openpgp/api/OpenPGPSignature.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,10 @@ void sanitize(OpenPGPCertificate.OpenPGPComponentKey issuer,
299299
this, "Signature predates issuer key creation time.");
300300
}
301301

302-
for (Iterator it = hashed.getNotationDataOccurrences().iterator(); it.hasNext(); )
302+
NotationData[] notations = hashed.getNotationDataOccurrences();
303+
for (int i = 0; i< notations.length; i++ )
303304
{
304-
NotationData notation = (NotationData)it.next();
305+
NotationData notation = notations[i];
305306
if (notation.isCritical())
306307
{
307308
throw new MalformedOpenPGPSignatureException(

0 commit comments

Comments
 (0)