[ https://issues.apache.org/jira/browse/PROTON-2837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17865483#comment-17865483 ]
Arnaud Cogoluègnes commented on PROTON-2837: -------------------------------------------- PR with a fix and a test update to reproduce the issue: https://github.com/apache/qpid-protonj2/pull/11. > Incorrect buffer size allocated in UTF 8 string decoding > -------------------------------------------------------- > > Key: PROTON-2837 > URL: https://issues.apache.org/jira/browse/PROTON-2837 > Project: Qpid Proton > Issue Type: Bug > Components: protonj2 > Affects Versions: protonj2-1.0.0-M20 > Reporter: Arnaud Cogoluègnes > Assignee: Timothy A. Bish > Priority: Minor > > The {{ProtonDecoderState.java#internalDecodeUTF8}} method does not allocate > the right number of bytes for the working buffer. It should be the remainder > of the string to decode ({{length - offset}}), not the number of readable > bytes of the main buffer. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org