You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/20 15:28:52 UTC

[GitHub] [arrow-rs] jhorstmann opened a new issue, #1601: ListArray::from(ArrayData) dereferences invalid pointer when offsets are empty

jhorstmann opened a new issue, #1601:
URL: https://github.com/apache/arrow-rs/issues/1601

   **Describe the bug**
   
   `ListArray::from(ArrayData)` tries to validate that the first offset is zero, without checking that the offset buffer actually contains any data. This leads to a segmentation fault when creating an empty ListArray.
   
   Additionally this validation should not really be needed, starting from a non-zero offset should work fine.
   
   **To Reproduce**
   Create an `ArrayData` object with list type and an empty offset buffer.
   
   **Expected behavior**
   The ListArray creation should succeed, resulting in an empty array.
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] alamb closed issue #1601: ListArray::from(ArrayData) dereferences invalid pointer when offsets are empty

Posted by GitBox <gi...@apache.org>.
alamb closed issue #1601: ListArray::from(ArrayData) dereferences invalid pointer when offsets are empty
URL: https://github.com/apache/arrow-rs/issues/1601


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org