activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Warmuth (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-291) Crash on sending a message with length = 0
Date Wed, 10 Mar 2010 09:53:47 GMT
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.


Mime
View raw message