Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11392

String to ByteBuffer conversion causes overflow due to multibyte chars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.4
    • 2.18.5, 2.19.1, 2.20.0
    • camel-undertow
    • None
    • Patch Available
    • Unknown
    • Patch, Important

    Description

      The NIOConverter uses String.length() to allocate a ByteBuffer which may not match the actual encoded byte length if the String contains multibyte chars.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              bhkho Bhun Kho
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: