Qpid
  1. Qpid
  2. QPID-3947

long subject causes encode errors in a loop

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.14, 0.16
    • Fix Version/s: 0.17
    • Component/s: C++ Client
    • Labels:
      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.

        Activity

        Show
        Gordon Sim added a comment - http://svn.apache.org/viewvc?view=revision&revision=1326014

          People

          • Assignee:
            Gordon Sim
            Reporter:
            Gordon Sim
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development