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

[R] Guard against null buffers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • R
    • None

    Description

      The R C++ bindings feature a number of cases where a data buffer is being accessed when it may possibly be null in the case of a 0-length array. This will cause a segfault

      https://github.com/apache/arrow/blob/master/r/src/array.cpp#L245

      I suggest defining some helper functions as we have done elsewhere to assist with getting a typed offset into a buffer but passing through nullptr if the buffer object is null

      Attachments

        Activity

          People

            romainfrancois Romain Francois
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: