nfsantos opened a new pull request, #1615:
URL: https://github.com/apache/jackrabbit-oak/pull/1615

   In the common case, a `ByteBuffer` backed by an array will use the array 
starting from position 0. But in some cases, especially when using 
`ByteBuffer.slice()`, the first position of the buffer might not correspond to 
the start of the array. In this case, whenever accessing directly the array, we 
must offset any accesses by `ByteBuffer.arrayOffset()`.
   
   We are not using slice() or any other operation that would result in a 
non-zero arrayOffset(), but it's better to do the correct calculation to 
future-proof the code. 


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