[
https://issues.apache.org/jira/browse/AMQNET-390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Bish resolved AMQNET-390.
---------------------------------
Resolution: Fixed
Fix applied in trunk.
> 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