Skip to content

Commit a1904af

Browse files
committed
Test javadoc addition
1 parent ad7ef97 commit a1904af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cbor/src/test/java/com/fasterxml/jackson/dataformat/cbor/failing/Fuzz_35979_StringValueTest.java

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

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

0 commit comments

Comments
 (0)