MichaelChirico opened a new pull request, #841:
URL: https://github.com/apache/arrow-nanoarrow/pull/841

   We recently found some bad code using `R_MakeExternalPtr(p, nullptr, 
nullptr)` (C++ "equivalent" of `NULL`) which could trigger a segfault _via_ 
`object.size()` of an object including the incorrectly-initialized externalptr.
   
   
https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#External-pointers-and-weak-references-1
   
   `tag` is an `SEXP`, so the R `NULL` is better than the C `NULL`.
   
   cc @randy3k


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to