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

ASF GitHub Bot commented on CAMEL-11392:
----------------------------------------

GitHub user abracadabrasimsalabimhocuspocus opened a pull request:

    https://github.com/apache/camel/pull/1748

    CAMEL-11392: String to ByteBuffer conversion causes overflow due to 
multibyte chars

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


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/abracadabrasimsalabimhocuspocus/camel master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1748.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1748
    
----
commit 36f7de9fa42cbbb14d7aa490251c39e9902cc19d
Author: Bhun Kho <[email protected]>
Date:   2017-06-09T16:22:45Z

    Actual number of bytes can be greater than the string length due to 
multibyte chars

----


> String to ByteBuffer conversion causes overflow due to multibyte chars
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-11392
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11392
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-undertow
>    Affects Versions: 2.18.4
>            Reporter: Bhun Kho
>
> The NIOConverter uses String.length() to allocate a ByteBuffer which may not 
> match the actual encoded byte length if the String contains multibyte chars.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to