Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-820

The readLength attribute of TBinaryProtocol is used as an instance variable and is decremented on each call of checkReadLength

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2, 0.3
    • Fix Version/s: 0.9.1
    • Component/s: Java - Library
    • Labels:
      None

      Description

      When coding towards readLength, I saw this more as a check on the message length as it comes in. Perhaps its me, but I just dont see why this should decrement giving the length header for each message.

        Attachments

        1. 820.patch
          10 kB
          Carl Yeksigian
        2. 820-v2.patch
          12 kB
          Carl Yeksigian
        3. tbinaryprotocol-length-check-patch-THRIFT-820.txt
          0.6 kB
          Nate McCall

          Issue Links

            Activity

              People

              • Assignee:
                carlyeks Carl Yeksigian
                Reporter:
                zznate Nate McCall
              • Votes:
                3 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: