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

[C++] Calling ArrayBuilder::Resize with length smaller than current appended length results in invalid state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.1
    • 0.12.0
    • C++

    Description

      This was brought up by the Go patch ARROW-3613. If you append some data to a builder, then call Resize with something smaller than what's reported by length(), the capacity will be updated, but the length will not. So I think further appends would probably segfault. Either way we should add some tests for this case of "shrinking" a builder (which destroys data, but it's permitted by the API

      Attachments

        Issue Links

          Activity

            People

              fsaintjacques Francois Saint-Jacques
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 20m
                  20m