Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 8411be6

Browse files
committed
Merge branch '2.5'
Conflicts: src/test/java/com/fasterxml/jackson/dataformat/cbor/ParserInputStreamTest.java
2 parents 4c371db + 8166462 commit 8411be6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

release-notes/VERSION

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Project: jackson-dataformat-cbor
44
=== Releases ===
55
------------------------------------------------------------------------
66

7+
2.6.2-1 (19-Aug-2015)
8+
9+
#13: Bug in boundary checking in the CBORParser
10+
711
2.6.1 (09-Aug-2015)
812
2.6.0 (19-Jul-2015)
913

src/test/java/com/fasterxml/jackson/dataformat/cbor/ParserInputStreamTest.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
import java.io.IOException;
99
import java.io.SequenceInputStream;
1010

11-
public class ParserInputStreamTest extends CBORTestBase {
12-
11+
// for [dataformat-cbor#13]
12+
public class ParserInputStreamTest extends CBORTestBase
13+
{
1314
@Test
1415
public void testInpuStream() throws Exception {
1516
CBORFactory f = new CBORFactory();
@@ -28,13 +29,8 @@ public void testInpuStream() throws Exception {
2829
ByteArrayInputStream in2 = new ByteArrayInputStream(buf2);
2930
SequenceInputStream inputStream = new SequenceInputStream(in1, in2);
3031

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);
3834
}
3935

4036
private byte[] generateHugeCBOR(CBORFactory f) throws IOException {

0 commit comments

Comments
 (0)