OpenSearch/core
Tim Brooks a3ade99fcf Fix BytesReferenceStreamInput#skip with offset (#25634)
There is a bug when a call to `BytesReferenceStreamInput` skip is made
on a `BytesReference` that has an initial offset. The offset for the
current slice is added to the current index and then subtracted from the
length. This introduces the possibility of a negative number of bytes to
skip. This happens inside a loop, which leads to an infinte loop.

This commit correctly subtracts the current slice index from the
slice.length. Additionally, the `BytesArrayTests` are modified to test
instances that include an offset.
2017-07-11 09:54:29 -05:00
..
licenses Upgrade to lucene-7.0.0-snapshot-00142c9. (#25641) 2017-07-11 13:58:55 +02:00
src Fix BytesReferenceStreamInput#skip with offset (#25634) 2017-07-11 09:54:29 -05:00
build.gradle Mark Log4j API dependency as non-optional 2017-06-08 16:09:34 -04:00