[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to