You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Darryl L. Pierce (JIRA)" <ji...@apache.org> on 2012/11/29 19:38:58 UTC

[jira] [Resolved] (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:all-tabpanel ]

Darryl L. Pierce resolved QPID-4480.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.20
    
> 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
>            Assignee: Darryl L. Pierce
>             Fix For: 0.20
>
>         Attachments: hello_world2.pl, 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