Mercurial > hg > icedtea8-forest > jaxp
changeset 1249:3a3863b12884 jdk8u72-b06
Merge
author | asaha |
---|---|
date | Wed, 28 Oct 2015 10:46:07 -0700 |
parents | acbcb6682c9b (current diff) 5cadfe102e5c (diff) |
children | 3ec6dc692e82 |
files | .hgtags |
diffstat | 8 files changed, 36 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgtags Mon Oct 26 13:17:02 2015 -0700 +++ b/.hgtags Wed Oct 28 10:46:07 2015 -0700 @@ -355,6 +355,7 @@ dcc563c9db9ef290a0783378d43a039cd92a08e3 jdk8u31-b31 119f4ae3151f4134a5e62034e66a4c17f524838b jdk8u31-b32 d8a594fd8507343dc23fa18c01b17c96fced47fd jdk8u31-b33 +68f0cd7d60d45df8e4b73a85e31a16aa025d9278 jdk8u31-b34 3a1bba8076da4e54882123e98e219eab1c31ccef jdk8u40-b00 f219da378d0768ff042d77221e5d20676ecc16f0 jdk8u40-b01 16ef2134c32a4e60b5a60105b371163aa5936278 jdk8u40-b02 @@ -426,6 +427,8 @@ 14975d905d764c5a18b60b991b97375d42dcecd7 jdk8u51-b15 050f5654fa19db518b354f06a67e0e1f03284a41 jdk8u51-b16 4519799749671cef69091e354b7cd52496f6d970 jdk8u51-b31 +975b01e6be932672edd527f6efe4b430d7bcf07a jdk8u51-b32 +59aea46232797f247aab869d751e4b8090eb4789 jdk8u51-b33 3b73732d6886dc8155f0c1fbb125ca60d9e2fd2b jdk8u60-b00 b0e15cd169a93080c4e30e9eb3061d0b329bf38c jdk8u60-b01 0b64e727bdb06c82caa02ef25ac2552ce3314537 jdk8u60-b02 @@ -454,6 +457,8 @@ 7a74fd4791e866c031df3c22cfc19ce71d3d952e jdk8u60-b25 9db1721b527eee3b41ff73fcd36ae052227bbf59 jdk8u60-b26 8f260851e05111c39353a6a4d06e752e7c86ec31 jdk8u60-b27 +37e7f34c2231d99a4ef3eb2c0b1a6899828f11f7 jdk8u60-b31 +393ae594ae7c3f4a776c976e38fb4598ae1c69fd jdk8u60-b32 d6ef96871920e6f6a0c437850c5afb6d7fc5b4f8 jdk8u52-b06 aa8bfb1b3e83bdda687d6c065bb51174d8cc5a81 jdk8u52-b07 d6ef96871920e6f6a0c437850c5afb6d7fc5b4f8 jdk8u65-b00 @@ -492,6 +497,14 @@ 25cf8ddfc8bf163211d1dfd79f31765cac58eef5 jdk8u66-b15 40ce5a6d733d44d93cbd5c0105a820ad7a7f4754 jdk8u66-b16 fc348901e958842a757d59c6b35846d13ab86793 jdk8u66-b17 +8af7da6c13af3c95bc9933e6d1e0d83648f6c0ae jdk8u66-b31 +700dc6c623439c5df98253fba49387919dd8732d jdk8u71-b00 +f13e36a4ac819281990312f13f156dbb6f913371 jdk8u71-b01 +90bca51fcdaa065b823ece61e4b0af1ad81955e5 jdk8u71-b02 +33134f35eea3fbffd695d24229d7894c7c2cf14f jdk8u71-b03 +28922f863973b2dc0c87b767685958ec7fc13b97 jdk8u71-b04 +6c783cdd685f6fc8bbc25e4debb07c2096f7b64a jdk8u71-b05 +ae391e3b725697f17e739eaf6b669af10c54ed28 jdk8u71-b06 60e623d06ebdcdc681943b16f00a87aeedf46873 jdk8u72-b00 176a2ce2e2d6fd07964eca60c28c6b0049d7bc4d jdk8u72-b01 3c5915665396301b730f808f8f5aa6e95b7c6113 jdk8u72-b02
--- a/src/com/sun/org/apache/xalan/internal/xsltc/compiler/FunctionCall.java Mon Oct 26 13:17:02 2015 -0700 +++ b/src/com/sun/org/apache/xalan/internal/xsltc/compiler/FunctionCall.java Wed Oct 28 10:46:07 2015 -0700 @@ -932,9 +932,9 @@ //Check if FSP and SM - only then proceed with loading if (namespace != null && isSecureProcessing && isExtensionFunctionEnabled - && (namespace.equals(JAVA_EXT_XALAN) - || namespace.equals(JAVA_EXT_XSLTC) - || namespace.equals(JAVA_EXT_XALAN_OLD) + && (namespace.startsWith(JAVA_EXT_XALAN) + || namespace.startsWith(JAVA_EXT_XSLTC) + || namespace.startsWith(JAVA_EXT_XALAN_OLD) || namespace.startsWith(XALAN_CLASSPACKAGE_NAMESPACE))) { _clazz = getXSLTC().loadExternalFunction(_className); } else {
--- a/src/com/sun/org/apache/xerces/internal/impl/XML11DocumentScannerImpl.java Mon Oct 26 13:17:02 2015 -0700 +++ b/src/com/sun/org/apache/xerces/internal/impl/XML11DocumentScannerImpl.java Wed Oct 28 10:46:07 2015 -0700 @@ -332,7 +332,7 @@ new Object[]{entityName}); } } - fEntityManager.startEntity(false, entityName, true); + fEntityManager.startEntity(true, entityName, true); } } }
--- a/src/com/sun/org/apache/xerces/internal/impl/XML11EntityScanner.java Mon Oct 26 13:17:02 2015 -0700 +++ b/src/com/sun/org/apache/xerces/internal/impl/XML11EntityScanner.java Wed Oct 28 10:46:07 2015 -0700 @@ -905,7 +905,7 @@ } int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; - if (fCurrentEntity.reference) { + if (fCurrentEntity.isGE) { checkLimit(Limit.TOTAL_ENTITY_SIZE_LIMIT, fCurrentEntity, offset, length); } content.setValues(fCurrentEntity.ch, offset, length); @@ -1052,6 +1052,9 @@ } int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; + if (fCurrentEntity.isGE) { + checkLimit(Limit.TOTAL_ENTITY_SIZE_LIMIT, fCurrentEntity, offset, length); + } content.setValues(fCurrentEntity.ch, offset, length); // return next character
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLEntityManager.java Mon Oct 26 13:17:02 2015 -0700 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLEntityManager.java Wed Oct 28 10:46:07 2015 -0700 @@ -1106,7 +1106,7 @@ /** * Starts a named entity. * - * @param reference flag to indicate whether the entity is an Entity Reference. + * @param isGE flag to indicate whether the entity is a General Entity * @param entityName The name of the entity to start. * @param literal True if this entity is started within a literal * value. @@ -1114,7 +1114,7 @@ * @throws IOException Thrown on i/o error. * @throws XNIException Thrown by entity handler to signal an error. */ - public void startEntity(boolean reference, String entityName, boolean literal) + public void startEntity(boolean isGE, String entityName, boolean literal) throws IOException, XNIException { // was entity declared? @@ -1238,7 +1238,7 @@ } // start the entity - startEntity(reference, entityName, xmlInputSource, literal, external); + startEntity(isGE, entityName, xmlInputSource, literal, external); } // startEntity(String,boolean) @@ -1287,7 +1287,7 @@ * This method can be used to insert an application defined XML * entity stream into the parsing stream. * - * @param reference flag to indicate whether the entity is an Entity Reference. + * @param isGE flag to indicate whether the entity is a General Entity * @param name The name of the entity. * @param xmlInputSource The input source of the entity. * @param literal True if this entity is started within a @@ -1297,12 +1297,12 @@ * @throws IOException Thrown on i/o error. * @throws XNIException Thrown by entity handler to signal an error. */ - public void startEntity(boolean reference, String name, + public void startEntity(boolean isGE, String name, XMLInputSource xmlInputSource, boolean literal, boolean isExternal) throws IOException, XNIException { - String encoding = setupCurrentEntity(reference, name, xmlInputSource, literal, isExternal); + String encoding = setupCurrentEntity(isGE, name, xmlInputSource, literal, isExternal); //when entity expansion limit is set by the Application, we need to //check for the entity expansion limit set by the parser, if number of entity
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java Mon Oct 26 13:17:02 2015 -0700 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java Wed Oct 28 10:46:07 2015 -0700 @@ -1038,7 +1038,7 @@ } int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; - if (fCurrentEntity.reference) { + if (fCurrentEntity.isGE) { checkLimit(Limit.TOTAL_ENTITY_SIZE_LIMIT, fCurrentEntity, offset, length); } @@ -1205,6 +1205,9 @@ } int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; + if (fCurrentEntity.isGE) { + checkLimit(Limit.TOTAL_ENTITY_SIZE_LIMIT, fCurrentEntity, offset, length); + } content.setValues(fCurrentEntity.ch, offset, length); // return next character
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLScanner.java Mon Oct 26 13:17:02 2015 -0700 +++ b/src/com/sun/org/apache/xerces/internal/impl/XMLScanner.java Wed Oct 28 10:46:07 2015 -0700 @@ -947,7 +947,7 @@ new Object[]{entityName}); } } - fEntityManager.startEntity(false, entityName, true); + fEntityManager.startEntity(true, entityName, true); } } }
--- a/src/com/sun/xml/internal/stream/Entity.java Mon Oct 26 13:17:02 2015 -0700 +++ b/src/com/sun/xml/internal/stream/Entity.java Wed Oct 28 10:46:07 2015 -0700 @@ -344,8 +344,8 @@ // to know that prolog is read public boolean xmlDeclChunkRead = false; - // flag to indicate whether the Entity is an Entity Reference - public boolean reference = false; + // flag to indicate whether the Entity is a General Entity + public boolean isGE = false; /** returns the name of the current encoding * @return current encoding name @@ -391,11 +391,11 @@ // /** Constructs a scanned entity. */ - public ScannedEntity(boolean reference, String name, + public ScannedEntity(boolean isGE, String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, String encoding, boolean literal, boolean mayReadChunks, boolean isExternal) { - this.reference = reference; + this.isGE = isGE; this.name = name ; this.entityLocation = entityLocation; this.stream = stream;