Arawoof06 opened a new pull request, #1231:
URL: https://github.com/apache/arrow-java/pull/1231

   ## What's Changed
   
   ClobConsumer grows the VarCharVector data buffer with a guard on 
`dataBuffer.writerIndex() + bytes.length > capacity()`, but it writes each 
chunk at `startIndex + totalBytes` through a raw `MemoryUtil.copyToMemory` that 
never advances `writerIndex()`, so the guard stays stuck at offset 0 and 
`reallocDataBuffer()` is never called for a CLOB whose bytes exceed the initial 
~32KB allocation. The unchecked write then runs past the buffer into adjacent 
off-heap memory. Both consume paths now check `capacity() < startIndex + 
totalBytes + bytes.length` and re-read the buffer after a realloc, matching the 
sibling `BinaryConsumer`.
   
   Closes #1230.


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

Reply via email to