From 407ddff2ca812603976a85ea6a0acbf03d26cf69 Mon Sep 17 00:00:00 2001 From: Andrew Ross Date: Tue, 13 Feb 2024 15:14:27 -0800 Subject: [PATCH] Fix spotless errors Signed-off-by: Andrew Ross --- CHANGELOG.md | 1 + .../common/lucene/store/ByteArrayIndexInputTests.java | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 319277fea608c..922caf703f3bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -110,6 +110,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed - Fix for deserilization bug in weighted round-robin metadata ([#11679](https://github.com/opensearch-project/OpenSearch/pull/11679)) - Add a system property to configure YamlParser codepoint limits ([#12298](https://github.com/opensearch-project/OpenSearch/pull/12298)) +- Prevent read beyond slice boundary in ByteArrayIndexInput ([#10481](https://github.com/opensearch-project/OpenSearch/issues/10481)) ### Security diff --git a/server/src/test/java/org/opensearch/common/lucene/store/ByteArrayIndexInputTests.java b/server/src/test/java/org/opensearch/common/lucene/store/ByteArrayIndexInputTests.java index 381e12d93b1df..ee71cfef7d925 100644 --- a/server/src/test/java/org/opensearch/common/lucene/store/ByteArrayIndexInputTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/store/ByteArrayIndexInputTests.java @@ -156,7 +156,6 @@ public void testRandomAccessReads() throws IOException { assertEquals(-8564288273245753042L, indexInput.readLong(1)); } - public void testReadBytesWithSlice() throws IOException { int inputLength = randomIntBetween(100, 1000); @@ -185,7 +184,5 @@ public void testReadBytesWithSlice() throws IOException { slice.close(); indexInput.close(); - } - }