activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Created] (AMQNET-390) Apache.NMS PrimitiveMap calls GetBuffer on a MemoryStream which can cause the marshalled form to contain extra bytes.
Date Wed, 20 Jun 2012 21:39:44 GMT
Timothy Bish created AMQNET-390:
-----------------------------------

             Summary: Apache.NMS PrimitiveMap calls GetBuffer on a MemoryStream which can
cause the marshalled form to contain extra bytes.
                 Key: AMQNET-390
                 URL: https://issues.apache.org/jira/browse/AMQNET-390
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: NMS
    Affects Versions: 1.5.0
            Reporter: Timothy Bish
            Assignee: Timothy Bish
             Fix For: 1.6.0


When the PrimitiveMap object marshals itself it places that data into a MemoryStream as its
being marshaled and once finished returns a byte array containing the marshaled form of the
Map.  When returning the byte array it calls GetBuffer on the MemoryStream which can contain
additional unused bytes from the stream buffer.  It should instead call ToArray to get a copy
of the data written and no more. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message