You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robert Greig (JIRA)" <qp...@incubator.apache.org> on 2006/12/13 12:03:21 UTC

[jira] Resolved: (QPID-175) StreamMessage can throw BufferOverflowException when writing to a received message after clearing

     [ http://issues.apache.org/jira/browse/QPID-175?page=all ]

Robert Greig resolved QPID-175.
-------------------------------

    Fix Version/s: M2
       Resolution: Fixed

Patch applied to svn rev 486594

> StreamMessage can throw BufferOverflowException when writing to a received message after clearing
> -------------------------------------------------------------------------------------------------
>
>                 Key: QPID-175
>                 URL: http://issues.apache.org/jira/browse/QPID-175
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M1
>            Reporter: Robert Greig
>         Assigned To: Robert Greig
>             Fix For: M2
>
>         Attachments: QPID-175.patch
>
>
> If you call clearBody on a received StreamMessage, and then attempt to write data to that message that is larger than the original payload, you get a BufferOverFlowException. This is because the underlying buffer is allocated with autoexpand set to false on receipt of a message.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira