Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-291

Crash on sending a message with length = 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1, 3.1, 3.1.1
    • 3.1.2
    • Openwire
    • None
    • Windows XP

    • Patch Available

    Description

      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 )

      ....

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            cwarmuth Christian Warmuth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: