mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-26 10:10:19 +00:00
6845701: Xerces2 Java XML library infinite loop with malformed XML input
Reviewed-by: hawtin
This commit is contained in:
parent
c39be4cb0e
commit
95f53ce57b
@ -1027,6 +1027,9 @@ public abstract class XMLScanner
|
||||
int c = fEntityScanner.peekChar();
|
||||
if (XMLChar.isMarkup(c) || c == ']') {
|
||||
fStringBuffer.append((char)fEntityScanner.scanChar());
|
||||
} else if (c != -1 && isInvalidLiteral(c)) {
|
||||
reportFatalError("InvalidCharInSystemID",
|
||||
new Object[] {Integer.toString(c, 16)});
|
||||
}
|
||||
} while (fEntityScanner.scanLiteral(quote, ident) != quote);
|
||||
fStringBuffer.append(ident);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user