You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Christian Warmuth (JIRA)" <ji...@apache.org> on 2010/03/10 10:53:47 UTC

[jira] Created: (AMQCPP-291) Crash on sending a message with length = 0

Crash on sending a message with length = 0
------------------------------------------

                 Key: AMQCPP-291
                 URL: https://issues.apache.org/activemq/browse/AMQCPP-291
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: Openwire
    Affects Versions: 3.0.1
         Environment: Windows XP
            Reporter: Christian Warmuth
            Assignee: Timothy Bish


When you send a message with length: 0 (not NULL)  the program will crash.

I think the problem is here:

OpenWireStringSupport.cpp

void OpenwireStringSupport::writeString( decaf::io::DataOutputStream& dataOut,
                                         const std::string* str )
                                         throw ( decaf::io::IOException ) {

    try 
    {

        if( str != NULL  )    <-- I think the problem is here it should be:  if( str != NULL && str->length()>0 )

       ....


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQCPP-291) Crash on sending a message with length = 0

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish updated AMQCPP-291:
--------------------------------

    Affects Version/s: 3.1
                       3.1.1
        Fix Version/s: 3.1.2

> Crash on sending a message with length = 0
> ------------------------------------------
>
>                 Key: AMQCPP-291
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-291
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 3.0.1, 3.1, 3.1.1
>         Environment: Windows XP
>            Reporter: Christian Warmuth
>            Assignee: Timothy Bish
>             Fix For: 3.1.2
>
>
> When you send a message with length: 0 (not NULL)  the program will crash.
> I think the problem is here:
> OpenWireStringSupport.cpp
> void OpenwireStringSupport::writeString( decaf::io::DataOutputStream& dataOut,
>                                          const std::string* str )
>                                          throw ( decaf::io::IOException ) {
>     try 
>     {
>         if( str != NULL  )    <-- I think the problem is here it should be:  if( str != NULL && str->length()>0 )
>        ....

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQCPP-291) Crash on sending a message with length = 0

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-291.
---------------------------------

    Resolution: Fixed

Fix applied to trunk and 3.1 fixes branch

> Crash on sending a message with length = 0
> ------------------------------------------
>
>                 Key: AMQCPP-291
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-291
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 3.0.1, 3.1, 3.1.1
>         Environment: Windows XP
>            Reporter: Christian Warmuth
>            Assignee: Timothy Bish
>             Fix For: 3.1.2
>
>
> When you send a message with length: 0 (not NULL)  the program will crash.
> I think the problem is here:
> OpenWireStringSupport.cpp
> void OpenwireStringSupport::writeString( decaf::io::DataOutputStream& dataOut,
>                                          const std::string* str )
>                                          throw ( decaf::io::IOException ) {
>     try 
>     {
>         if( str != NULL  )    <-- I think the problem is here it should be:  if( str != NULL && str->length()>0 )
>        ....

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.