Volkan Yazici created LOG4J2-2998:
-------------------------------------

             Summary: JsonWriter truncation doesn't take surrogates into account
                 Key: LOG4J2-2998
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2998
             Project: Log4j 2
          Issue Type: Bug
          Components: JsonTemplateLayout
    Affects Versions: 2.14.0
            Reporter: Volkan Yazici
            Assignee: Volkan Yazici
             Fix For: 2.14.1


{{JsonWriter}} of {{JsonTemplateLayout}} works on {{char}}\-by\-{{char}} basis, 
even while truncating excessive input. This approach might leave the truncated 
string in a state such that the last {{char}} (which will be followed by 
{{truncatedStringSuffix}}) might be the high surrogate of a surrogate pair. 
This incomplete {{char}} needs to be removed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to