~openjdk/openjdk/openjdk7

« back to all changes in this revision

Viewing changes to patches/openjdk-7u91-secwebrev-8078440-jdk.patch

  • Committer: Matthias Klose
  • Date: 2015-10-22 12:00:33 UTC
  • Revision ID: doko@ubuntu.com-20151022120033-9nk8twp82wx63tdg
openjdk-7 (7u85-2.6.1-6) unstable; urgency=high

  [ Tiago Stürmer Daitx ]
  * Security fixes
    - S8048030, CVE-2015-4734: Expectations should be consistent
    - S8068842, CVE-2015-4803: Better JAXP data handling
    - S8076339, CVE-2015-4903: Better handling of remote object invocation
    - S8076383, CVE-2015-4835: Better CORBA exception handling
    - S8076387, CVE-2015-4882: Better CORBA value handling
    - S8076392, CVE-2015-4881: Improve IIOPInputStream consistency
    - S8076413, CVE-2015-4883: Better JRMP message handling
    - S8078427, CVE-2015-4842: More supportive home environment
    - S8078440: Safer managed types
    - S8080541: More direct property handling
    - S8080688, CVE-2015-4860: Service for DGC services
    - S8081744, CVE-2015-4868: Clear out list corner case
    - S8081760: Better group dynamics
    - S8086092. CVE-2015-4840: More palette improvements
    - S8086733, CVE-2015-4893: Improve namespace handling
    - S8087350: Improve array conversions
    - S8103671, CVE-2015-4805: More objective stream classes
    - S8103675: Better Binary searches
    - S8129611: Accessbridge error handling improvement
    - S8130078, CVE-2015-4911: Document better processing
    - S8130185: More accessible access switch
    - S8130193, CVE-2015-4806: Improve HTTP connections
    - S8130864: Better server identity handling
    - S8130891, CVE-2015-4843: (bf) More direct buffering
    - S8131291, CVE-2015-4872: Perfect parameter patterning
    - S8132042, CVE-2015-4844: Preserve layout presentation
  * S6966259: Make PrincipalName and Realm immutable, required for S8048030
  * S8078822: 8068842 fix missed one new file
    PrimeNumberSequenceGenerator.java

  [ Matthias Klose ]
  * Re-enable the atk bridge for releases with a fixed atk bridge.
    Again closes: #797595.

 -- Matthias Klose <doko@ubuntu.com>  Thu, 22 Oct 2015 00:42:34 +0200

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# HG changeset patch
 
2
# User sjiang
 
3
# Date 1430984247 -7200
 
4
#      Thu May 07 09:37:27 2015 +0200
 
5
# Node ID 381fbc74c31d81d3d325960cb455f22d45374fcd
 
6
# Parent  ef78fdc092bdcb264008a522e3636dffc6d92b3a
 
7
8078440: Safer managed types
 
8
Reviewed-by: dfuchs, ahgross
 
9
 
 
10
Index: openjdk/jdk/src/share/classes/javax/management/openmbean/OpenMBeanAttributeInfoSupport.java
 
11
===================================================================
 
12
--- openjdk/jdk/src/share/classes/javax/management/openmbean/OpenMBeanAttributeInfoSupport.java.orig
 
13
+++ openjdk/jdk/src/share/classes/javax/management/openmbean/OpenMBeanAttributeInfoSupport.java
 
14
@@ -1,5 +1,5 @@
 
15
 /*
 
16
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
 
17
+ * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
 
18
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 
19
  *
 
20
  * This code is free software; you can redistribute it and/or modify it
 
21
@@ -45,7 +45,6 @@ import javax.management.DescriptorRead;
 
22
 import javax.management.ImmutableDescriptor;
 
23
 import javax.management.MBeanAttributeInfo;
 
24
 import com.sun.jmx.remote.util.EnvHelp;
 
25
-import sun.reflect.misc.ConstructorUtil;
 
26
 import sun.reflect.misc.MethodUtil;
 
27
 import sun.reflect.misc.ReflectUtil;
 
28
 
 
29
@@ -693,8 +692,9 @@ public class OpenMBeanAttributeInfoSuppo
 
30
     private static <T> T convertFromString(String s, OpenType<T> openType) {
 
31
         Class<T> c;
 
32
         try {
 
33
-            ReflectUtil.checkPackageAccess(openType.safeGetClassName());
 
34
-            c = cast(Class.forName(openType.safeGetClassName()));
 
35
+            String className = openType.safeGetClassName();
 
36
+            ReflectUtil.checkPackageAccess(className);
 
37
+            c = cast(Class.forName(className));
 
38
         } catch (ClassNotFoundException e) {
 
39
             throw new NoClassDefFoundError(e.toString());  // can't happen
 
40
         }