Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-390

Apache.NMS PrimitiveMap calls GetBuffer on a MemoryStream which can cause the marshalled form to contain extra bytes.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • NMS
    • None

    Description

      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.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: