zjuwangg opened a new pull request, #9692:
URL: https://github.com/apache/incubator-gluten/pull/9692
## What changes were proposed in this pull request?
(Fixes: \#ISSUE-9691)
The type of `bytesBufferOffset` in UnsafeBytesBufferArray.scala is
Array[Int], while when `bytesBufferLengths ` are all large number, will cause
the element in `bytesBufferOffset` overflowed the Int.max_value, and finally
lead to jvm coredump in other operation like
``` scala
Platform.copyMemory(
bytesBuffer,
Platform.BYTE_ARRAY_OFFSET,
longArray.getBaseObject,
longArray.getBaseOffset + bytesBufferOffset(index),
bytesBufferLengths(index))
```
## How was this patch tested?
Manually test in our production environment
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]