[ 
https://issues.apache.org/jira/browse/LOG4J2-2998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17265878#comment-17265878
 ] 

ASF subversion and git services commented on LOG4J2-2998:
---------------------------------------------------------

Commit 65a3bc340c8ddd0c2759be4f09ca64a251830238 in logging-log4j2's branch 
refs/heads/LOG4J2-2998 from Volkan Yazici
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=65a3bc3 ]

LOG4J2-2998 Fix truncation of excessive strings ending with a high surrogate in 
JsonWriter.


> 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
>            Priority: Major
>             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