Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3947

long subject causes encode errors in a loop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14, 0.16
    • 0.17
    • C++ Client
    • None

    Description

      Steps to Reproduce:
      1. ./spout
      'amq.direct/AReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectAReallyLongSubjectARea'

      Actual results:
      spout cycles with output:
      2012-04-13 16:30:48 error Caught exception in state: 3 with event: 2: Could not
      encode string of 256 bytes as uint8_t string. (qpid/framing/Buffer.cpp:255)

      The problem is that any bounds checking on str8 fields is done only on encode, so application threads are not correctly notified.

      Attachments

        Activity

          People

            gsim Gordon Sim
            gsim Gordon Sim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: