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

Incorrect size returned on read

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8, 0.9
    • 0.9
    • C++ - Compiler
    • Any

    • Patch Available

    Description

      The problem exists when reading list, set or map.
      The 'xfer' variable is not updated by size of beginning and ending.

      Current generated code:
      iprot->read***Begin();

      iprot->read***End();

      Correctly generated code:
      xfer += iprot->read***Begin();

      xfer += iprot->read***End();

      Attachments

        Activity

          People

            _nn_ NN
            _nn_ NN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified