This repository was archived by the owner on Jan 22, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src/test/java/com/fasterxml/jackson/dataformat/cbor Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ Project: jackson-dataformat-cbor
4
4
=== Releases ===
5
5
------------------------------------------------------------------------
6
6
7
+ 2.6.2-1 (19-Aug-2015)
8
+
9
+ #13: Bug in boundary checking in the CBORParser
10
+
7
11
2.6.1 (09-Aug-2015)
8
12
2.6.0 (19-Jul-2015)
9
13
Original file line number Diff line number Diff line change 8
8
import java .io .IOException ;
9
9
import java .io .SequenceInputStream ;
10
10
11
- public class ParserInputStreamTest extends CBORTestBase {
12
-
11
+ // for [dataformat-cbor#13]
12
+ public class ParserInputStreamTest extends CBORTestBase
13
+ {
13
14
@ Test
14
15
public void testInpuStream () throws Exception {
15
16
CBORFactory f = new CBORFactory ();
@@ -28,13 +29,8 @@ public void testInpuStream() throws Exception {
28
29
ByteArrayInputStream in2 = new ByteArrayInputStream (buf2 );
29
30
SequenceInputStream inputStream = new SequenceInputStream (in1 , in2 );
30
31
31
- try {
32
- JsonNode jsonNode = cborMapper .readTree (inputStream );
33
- }
34
- catch (ArrayIndexOutOfBoundsException ex ){
35
- ex .printStackTrace ();
36
- fail ("Shouldn't throw an ArrayIndexOutOfBoundsException while parsing!" );
37
- }
32
+ JsonNode jsonNode = cborMapper .readTree (inputStream );
33
+ assertNotNull (jsonNode );
38
34
}
39
35
40
36
private byte [] generateHugeCBOR (CBORFactory f ) throws IOException {
You can’t perform that action at this time.
0 commit comments