activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQCPP-117) ActiveMQBytesMessage::getBodyBytes crashes if body length is zero
Date Thu, 24 May 2007 17:26:35 GMT

     [ https://issues.apache.org/activemq/browse/AMQCPP-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish resolved AMQCPP-117.
---------------------------------

    Resolution: Fixed

Fixed in trunk

> ActiveMQBytesMessage::getBodyBytes crashes if body length is zero
> -----------------------------------------------------------------
>
>                 Key: AMQCPP-117
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-117
>             Project: ActiveMQ C++ Client
>          Issue Type: Improvement
>          Components: Openwire
>    Affects Versions: 2.1
>            Reporter: Albert Strasheim
>         Assigned To: Timothy Bish
>         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.


Mime
View raw message