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/03 21:29:12 UTC
[jira] [Created] (QPID-4416) perl binding for getContentPtr fails
on payloads containing NULL
Jimmy Jones created QPID-4416:
---------------------------------
Summary: perl binding for getContentPtr fails on payloads containing NULL
Key: QPID-4416
URL: https://issues.apache.org/jira/browse/QPID-4416
Project: Qpid
Issue Type: Bug
Affects Versions: 0.18
Reporter: Jimmy Jones
getContentPtr uses SWIG_FromCharPtr, however this uses strlen internally, so assumes the payload doesn't contain NULL - SWIG_FromCharPtrAndSize should be used instead.
--
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
[jira] [Updated] (QPID-4416) perl binding for getContentPtr fails
on payloads containing NULL
Posted by "Jimmy Jones (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jimmy Jones updated QPID-4416:
------------------------------
Attachment: getcontentptr.diff
Proposed fix
> perl binding for getContentPtr fails on payloads containing NULL
> ----------------------------------------------------------------
>
> Key: QPID-4416
> URL: https://issues.apache.org/jira/browse/QPID-4416
> Project: Qpid
> Issue Type: Bug
> Affects Versions: 0.18
> Reporter: Jimmy Jones
> Attachments: getcontentptr.diff
>
>
> getContentPtr uses SWIG_FromCharPtr, however this uses strlen internally, so assumes the payload doesn't contain NULL - SWIG_FromCharPtrAndSize should be used instead.
--
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