jorgecarleitao opened a new pull request #9291:
URL: https://github.com/apache/arrow/pull/9291


   # Problem
   
   Currently, a lot of our code relies on `PrimitiveArray::value(usize)`, 
however, that method is highly `unsafe` as any `usize` larger than the length 
of the array allows to read arbitrary memory regions due to the lack of 
protections.
   
   # This PR:
   
   This PR changes many of our code to not rely on it for this operation, 
replacing by a safe alternative. This PR is expected to improve the performance 
of the touched kernels as we already have alternatives to efficiently create an 
array out of an iterator.
   
   todo: benchmark


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


Reply via email to