RFR: 8281093: Violating Attribute-Value Normalization in the XML specification 1.0

Joe Wang joehw at openjdk.java.net
Mon Mar 7 17:57:59 UTC 2022


On Mon, 7 Mar 2022 17:07:20 GMT, Ravi Reddy <rreddy at openjdk.org> wrote:

> This fix is for violation of XML specification on Attribute-Value normalization for external entities having character "\r". 
> 
> While normalizing entity with '\r', we should be checking if the entity is external before changing the position and offset. "isExternal()" check is missed in the new method :
> normalizeNewlines(short version, XMLString buffer, boolean append,boolean storeWS, NameType nt).
> .

Marked as reviewed by joehw (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/7731


More information about the core-libs-dev mailing list