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/06/30 13:23:24 UTC

[GitHub] [arrow-rs] tustvold opened a new issue, #1978: PrimitiveBuilder::finish_dict does not validate dictionary offsets

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

   **Describe the bug**
   
   PrimitiveBuilder::finish_dict does not validate that the provided values array contains enough values for the largest key in the dictionary
   
   **To Reproduce**
   
   ```
   #[test]
   fn test_primitive_array_builder_dict() {
       let mut builder = Int32Array::builder(10);
       builder.append_value(1).unwrap();
   
       let values = Arc::new(Int32Array::from_iter_values([0]));
       let dict = builder.finish_dict(values);
   }
   ```
   
   **Expected behavior**
   
   It should not be possible to construct invalid ArrayData with safe APIs
   


-- 
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] tustvold closed issue #1978: PrimitiveBuilder::finish_dict does not validate dictionary offsets

Posted by GitBox <gi...@apache.org>.
tustvold closed issue #1978: PrimitiveBuilder::finish_dict does not validate dictionary offsets
URL: https://github.com/apache/arrow-rs/issues/1978


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