You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jimmy Jones (JIRA)" <ji...@apache.org> on 2012/11/27 22:26:58 UTC

[jira] [Comment Edited] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

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

Jimmy Jones edited comment on QPID-4480 at 11/27/12 9:25 PM:
-------------------------------------------------------------

Attached a fix. Tested on RHEL6. Could this go into 0.20 please?
                
      was (Author: jimmyjones2):
    Attached a fix. Tested on RHEL6.
                  
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>         Attachments: null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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