Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2998

JsonWriter truncation doesn't take surrogates into account

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.0
    • Fix Version/s: 2.14.1
    • Component/s: JsonTemplateLayout
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vy Volkan Yazici
                Reporter:
                vy Volkan Yazici
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: