changeset 26517:20e5bfc7a96d

8058175: [XML 1.0/1.1] - Attribute values with supplemental characters are being corrupted. Reviewed-by: joehw
author martin
date Wed, 10 Sep 2014 15:17:48 -0700
parents 8e6a45c22cea
children 7f4dffefafa7
files jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java	Fri Sep 05 14:04:22 2014 -0700
+++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java	Wed Sep 10 15:17:48 2014 -0700
@@ -973,6 +973,7 @@
                         fStringBuffer2.append('\n');
                     }
                 } else if (c != -1 && XMLChar.isHighSurrogate(c)) {
+                    fStringBuffer3.clear();
                     if (scanSurrogates(fStringBuffer3)) {
                         stringBuffer.append(fStringBuffer3);
                         if (entityDepth == fEntityDepth && fNeedNonNormalizedValue) {