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 2020/12/27 13:05:01 UTC

[GitHub] [arrow] jorgecarleitao commented on a change in pull request #8997: ARROW-10692: [Rust] Removed undefined behavior derived from null pointers

jorgecarleitao commented on a change in pull request #8997:
URL: https://github.com/apache/arrow/pull/8997#discussion_r549111071



##########
File path: rust/arrow/src/buffer.rs
##########
@@ -919,24 +962,18 @@ mod tests {
 
     #[test]
     fn test_from_raw_parts() {
-        let buf = unsafe { Buffer::from_raw_parts(null_mut(), 0, 0) };

Review comment:
       Exactly :)




----------------------------------------------------------------
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.

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