changeset 6851:d5f36e1c927e

8023672: Enhance jar file validation Summary: Also reviewed by Chris Ries and Alexander Fomin Reviewed-by: mullan, sherman
author weijun
date Fri, 13 Sep 2013 15:22:39 +0800
parents abe1cb2d27cb
children 1a975041e36e
files src/share/classes/java/util/jar/JarVerifier.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/jar/JarVerifier.java	Fri Sep 13 15:17:31 2013 +0800
+++ b/src/share/classes/java/util/jar/JarVerifier.java	Fri Sep 13 15:22:39 2013 +0800
@@ -169,7 +169,9 @@
             name = name.substring(1);
 
         // only set the jev object for entries that have a signature
-        if (sigFileSigners.get(name) != null) {
+        // (either verified or not)
+        if (sigFileSigners.get(name) != null ||
+                verifiedSigners.get(name) != null) {
             mev.setEntry(name, je);
             return;
         }