Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-72

Incorect handling of message size in ByteArrayOutputStream::write

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Other C++ Clients
    • None
    • RHEL 4/32bit

    Description

      when you are sending message via openwire protocol, ByteArrayOutputStream::write is called in certain moment ...
      when message size is greater then defaul CHUNK space is reallocated and there is "check for EOF offset".

      if( offset > bodySize )
      expandBody() ;

      but should be there

      if ( offset >= bodySize )
      expandBody();

      Attachments

        1. patch.txt
          0.6 kB
          Timothy A. Bish

        Activity

          People

            nmittler Nathan Christopher Mittler
            bigsam72 Radek Sedmak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified