You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "chenta lee (JIRA)" <qp...@incubator.apache.org> on 2009/04/04 16:39:13 UTC
[jira] Created: (QPID-1787) Wrong parameter order of memset In
cluster/Cpg.cpp
Wrong parameter order of memset In cluster/Cpg.cpp
--------------------------------------------------
Key: QPID-1787
URL: https://issues.apache.org/jira/browse/QPID-1787
Project: Qpid
Issue Type: Bug
Components: C++ Broker
Environment: Linux
Reporter: chenta lee
Attachments: Cpg.cpp.patch
I found out that the parameter order is wrong when using "memset" in Cpg.cpp at line 72
the original code is ::memset(&callbacks, sizeof(callbacks), 0) and it should be ::memset(&callbacks, 0, sizeof(callbacks));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Resolved: (QPID-1787) Wrong parameter order of memset In
cluster/Cpg.cpp
Posted by "Steve Huston (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Huston resolved QPID-1787.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.6
Thanks. Fixed in svn trunk r786148.
> Wrong parameter order of memset In cluster/Cpg.cpp
> --------------------------------------------------
>
> Key: QPID-1787
> URL: https://issues.apache.org/jira/browse/QPID-1787
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Environment: Linux
> Reporter: chenta lee
> Fix For: 0.6
>
> Attachments: Cpg.cpp.patch
>
>
> I found out that the parameter order is wrong when using "memset" in Cpg.cpp at line 72
> the original code is ::memset(&callbacks, sizeof(callbacks), 0) and it should be ::memset(&callbacks, 0, sizeof(callbacks));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Updated: (QPID-1787) Wrong parameter order of memset In
cluster/Cpg.cpp
Posted by "chenta lee (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
chenta lee updated QPID-1787:
-----------------------------
Attachment: Cpg.cpp.patch
Here is the patch to fix this bug
> Wrong parameter order of memset In cluster/Cpg.cpp
> --------------------------------------------------
>
> Key: QPID-1787
> URL: https://issues.apache.org/jira/browse/QPID-1787
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Environment: Linux
> Reporter: chenta lee
> Attachments: Cpg.cpp.patch
>
>
> I found out that the parameter order is wrong when using "memset" in Cpg.cpp at line 72
> the original code is ::memset(&callbacks, sizeof(callbacks), 0) and it should be ::memset(&callbacks, 0, sizeof(callbacks));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org