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

ASF subversion and git services commented on PROTON-2517:
---------------------------------------------------------

Commit 4c0b03f8e4dcb632b8232f6c5b97ce20156ae3f3 in qpid-proton's branch 
refs/heads/main from Clifford Jansen
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=4c0b03f ]

PROTON-2517: for pn_data used by emitters, save point, rewind, restore.  This 
closes #362


> The new C codec can misinterpret pn_data_t values resulting in unintended 
> wire data.
> ------------------------------------------------------------------------------------
>
>                 Key: PROTON-2517
>                 URL: https://issues.apache.org/jira/browse/PROTON-2517
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.37.0
>            Reporter: Clifford Jansen
>            Assignee: Clifford Jansen
>            Priority: Major
>
> See the C++ frame trace from
>   https://issues.redhat.com/browse/ENTMQCL-3278
> The zero length array is printed instead of a null because the test in 
> emit_multiple() from emitters.h fails to set the current node of the 
> pn_data_t to the first node.  The test
>   if (pn_data_type(data) == PN_ARRAY) { //...
> fails and the array processing logic is bypassed, including the lines
>      switch (pn_data_get_array(data)) {
>         case 0:
>           pni_emitter_writef8(emitter, PNE_NULL);
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to