Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6640

[C++] Error when BufferedInputStream Peek more than bytes buffered

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.15.0
    • Component/s: C++

      Description

      An example:

      BufferedInputStream:Peek(10), but only 8 buffered remaining (buffer_pos is 2 right now)

      it will increase the buffer size by 2. In the mean time the buffer_pos will be reset to 0, but it should remain 2.

      Resetting buffer_pos will cause problems.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                czxrrr Zherui Cao
                Reporter:
                czxrrr Zherui Cao
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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