changeset 9033:4b74f9ad3dd7

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:37:43 +0800
parents ac3e7b3c1a00
children 432c348e15bc
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:37:39 2013 +0800
+++ b/src/share/classes/java/util/jar/JarVerifier.java	Fri Sep 13 15:37:43 2013 +0800
@@ -179,7 +179,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;
         }