You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "http (JIRA)" <ji...@apache.org> on 2011/03/17 10:04:29 UTC
[jira] Created: (QPID-3148) Seg fault caused by
Buffer::putRawData(const string &s)
Seg fault caused by Buffer::putRawData(const string &s)
-------------------------------------------------------
Key: QPID-3148
URL: https://issues.apache.org/jira/browse/QPID-3148
Project: Qpid
Issue Type: Improvement
Environment: C++ Broker 0.8
Reporter: http
I have the problem while using Header exchange.The queue and binding to header exhcange are created.The args of binding is very long,so have Seg fault.And then I find the bad point at Buffer::putRawData(const string &s)
The code as follows:
uint32_t len = s.length();
s.copy(data + position, len);
position +=len;
If the length of string s is greater than the length of data, then error occurrs. Why don't check the length and then copy?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] [Updated] (QPID-3148) Seg fault caused by
Buffer::putRawData(const string &s)
Posted by "Robbie Gemmell (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robbie Gemmell updated QPID-3148:
---------------------------------
Component/s: C++ Broker
> Seg fault caused by Buffer::putRawData(const string &s)
> -------------------------------------------------------
>
> Key: QPID-3148
> URL: https://issues.apache.org/jira/browse/QPID-3148
> Project: Qpid
> Issue Type: Improvement
> Components: C++ Broker
> Environment: C++ Broker 0.8
> Reporter: http
>
> I have the problem while using Header exchange.The queue and binding to header exhcange are created.The args of binding is very long,so have Seg fault.And then I find the bad point at Buffer::putRawData(const string &s)
> The code as follows:
> uint32_t len = s.length();
> s.copy(data + position, len);
> position +=len;
> If the length of string s is greater than the length of data, then error occurrs. Why don't check the length and then copy?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org