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/11/03 22:29:24 UTC

[GitHub] [arrow] nevi-me commented on pull request #8560: ARROW-10448: [Rust] Remove PrimitiveArray::new that can cause UB

nevi-me commented on pull request #8560:
URL: https://github.com/apache/arrow/pull/8560#issuecomment-721407466


   I think we have a similar problem with building arrays from `ArrayDataBuilder` because when building `ArrayData`, we don't check if the length of the array corresponds with the buffer's length (or if it's even specified).
   
   So something like the below gets created, but ends up as a 0-len array
   
   ```rust
   // try build array data without specifying length
   ArrayData::builder(DataType::_).buffers(vec![buffer1, buffer2]).build()
   ```


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