long subject causes encode errors in a loop
-------------------------------------------

                 Key: QPID-3947
                 URL: https://issues.apache.org/jira/browse/QPID-3947
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
    Affects Versions: 0.14, 0.16
            Reporter: Gordon Sim
            Assignee: Gordon Sim
             Fix For: 0.17


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.


--
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to