Skip to content

Commit 3f7a994

Browse files
committed
Merge branch '2.15'
2 parents 477c851 + a1904af commit 3f7a994

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cbor/src/test/java/tools/jackson/dataformat/cbor/failing/Fuzz_35979_StringValueTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ public class Fuzz_35979_StringValueTest extends CBORTestBase
1313

1414
// [dataformats-binary#316]
1515
// https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35979
16+
//
17+
// Problem is decoding of a 256 byte malformed String, last byte of
18+
// which indicates multi-byte UTF-8 character; decoder does not verify
19+
// there are more bytes available. If at end of buffer, hits ArrayIndex;
20+
// otherwise would return corrupt character with data past content end
1621
public void testInvalidTextValueWithBrokenUTF8() throws Exception
1722
{
1823
final byte[] input = readResource("/data/clusterfuzz-cbor-35979.cbor");

0 commit comments

Comments
 (0)