Skip to content

Commit

Permalink
Fix #221 (for 2.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 6, 2015
1 parent 98df182 commit 5f04c20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ JSON library.
2.5.5 (not yet released)

#220: Problem with `JsonParser.nextFieldName(SerializableString)` for byte-backed parser
#221: Fixed ArrayIndexOutOfBounds exception for character-based `JsonGenerator`
(reported by a-lerion@github)

2.5.4 (09-Jun-2015)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.math.BigInteger;

import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.JsonGenerator.Feature;
import com.fasterxml.jackson.core.io.*;

public class UTF8JsonGenerator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ private void _appendCharacterEscape(char ch, int escCode)
return;
}
if (escCode != CharacterEscapes.ESCAPE_CUSTOM) { // std, \\uXXXX
if ((_outputTail + 2) > _outputEnd) {
if ((_outputTail + 5) >= _outputEnd) {
_flushBuffer();
}
int ptr = _outputTail;
Expand Down

0 comments on commit 5f04c20

Please sign in to comment.