[
https://issues.apache.org/jira/browse/ARROW-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17660385#comment-17660385
]
Rok Mihevc commented on ARROW-3362:
-----------------------------------
This issue has been migrated to [issue
#19693|https://github.com/apache/arrow/issues/19693] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [R] Guard against null buffers
> ------------------------------
>
> Key: ARROW-3362
> URL: https://issues.apache.org/jira/browse/ARROW-3362
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Wes McKinney
> Assignee: Romain Francois
> Priority: Major
> Fix For: 0.12.0
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)