On Wed, 7 Dec 2022 19:29:32 GMT, Alexander Zvegintsev <[email protected]> 
wrote:

> Length check won't help here:

I think the problem here is in the original code: the array allocation was 
reused across 3 places and it reserved buffers for ranges and destinations that 
should load up the remaining of data from the offset 7, but in first two places 
are trying to load data from offset 6, which causes buffer overflow. The idea 
of my new fix here is to create a proper buffers.

-------------

PR: https://git.openjdk.org/jdk/pull/9016

Reply via email to