activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Strasheim (JIRA)" <>
Subject [jira] Created: (AMQCPP-117) ActiveMQBytesMessage::getBodyBytes crashes if body length is zero
Date Thu, 24 May 2007 17:00:38 GMT
ActiveMQBytesMessage::getBodyBytes crashes if body length is zero

                 Key: AMQCPP-117
             Project: ActiveMQ C++ Client
          Issue Type: Improvement
          Components: Openwire
    Affects Versions: 2.1
            Reporter: Albert Strasheim
         Assigned To: Nathan Mittler
         Attachments: zerolenbodybytes.diff

On Windows with a Debug build, ActiveMQBytesMessage::getBodyBytes crashes when called if body
length is zero.

The following friendly error pops up:

Microsoft Visual C++ Debug Library
Debug Assertion Failed!

Program: C:\Python24\python.exe
File: C:\Program Files\Microsoft Visual Studio 8\VC\include\vector
Line: 741

Expression: vector subscript out of range

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
Abort   Retry   Ignore   

Proposed patch attached (check for length greater than zero, if not return NULL0.

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

View raw message