You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ar...@apache.org on 2004/02/12 10:41:31 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util ObjectFactory.java SecuritySupport.java ObjectType.java
aruny 2004/02/12 01:41:31
Modified: java/src/org/apache/xalan/xsltc/compiler/util Tag:
jaxp12112003_branch ObjectType.java
Added: java/src/org/apache/xalan/xsltc/compiler/util Tag:
jaxp12112003_branch ObjectFactory.java
SecuritySupport.java
Log:
ObjectFactory class exposes class loaders publicly which allow untrusted code to access internal classes. Making following changes to fix it.
1.Duplicating the ObjectFactory, SecuritySupport.java and SecuritySupport12.java class in order to make it package private in each of the packages that require its services.
2.Using checkPackageAccess() to prevent access to internal packages of jdk(sun.*).
Revision Changes Path
No revision
No revision
1.7.2.1 +2 -2 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/ObjectType.java
Index: ObjectType.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/ObjectType.java,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -r1.7 -r1.7.2.1
--- ObjectType.java 17 Oct 2003 17:15:15 -0000 1.7
+++ ObjectType.java 12 Feb 2004 09:41:31 -0000 1.7.2.1
@@ -74,7 +74,7 @@
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.PUSH;
import org.apache.xalan.xsltc.compiler.Constants;
-import org.apache.xml.utils.ObjectFactory;
+
public final class ObjectType extends Type {
No revision
Index: ObjectType.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/ObjectType.java,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -r1.7 -r1.7.2.1
--- ObjectType.java 17 Oct 2003 17:15:15 -0000 1.7
+++ ObjectType.java 12 Feb 2004 09:41:31 -0000 1.7.2.1
@@ -74,7 +74,7 @@
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.PUSH;
import org.apache.xalan.xsltc.compiler.Constants;
-import org.apache.xml.utils.ObjectFactory;
+
public final class ObjectType extends Type {
No revision
Index: ObjectType.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/ObjectType.java,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -r1.7 -r1.7.2.1
--- ObjectType.java 17 Oct 2003 17:15:15 -0000 1.7
+++ ObjectType.java 12 Feb 2004 09:41:31 -0000 1.7.2.1
@@ -74,7 +74,7 @@
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.PUSH;
import org.apache.xalan.xsltc.compiler.Constants;
-import org.apache.xml.utils.ObjectFactory;
+
public final class ObjectType extends Type {
1.1.2.1 +665 -0 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/Attic/ObjectFactory.java
1.1.2.1 +159 -0 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/Attic/SecuritySupport.java
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org