Skip to content

Commit eabb42c

Browse files
committed
Merge branch '2.13' into 2.14
2 parents 81bd028 + 52a84fd commit eabb42c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

smile/src/main/java/com/fasterxml/jackson/dataformat/smile/SmileParser.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,9 +1866,9 @@ private final String _findDecodedFromSymbols(final int len) throws IOException
18661866
}
18671867

18681868
int q2 = (inBuf[inPtr++] & 0xFF);
1869-
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
1870-
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
1871-
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
1869+
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
1870+
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
1871+
q2 = (q2 << 8) | (inBuf[inPtr++] & 0xFF);
18721872

18731873
if (len < 13) {
18741874
int q3 = (inBuf[inPtr++] & 0xFF);
@@ -1940,6 +1940,14 @@ private static int[] _growArrayTo(int[] arr, int minSize) {
19401940
return Arrays.copyOf(arr, size);
19411941
}
19421942

1943+
// Helper method needed to fix [dataformats-binary#312], masking of 0x00 character
1944+
// 26-Feb-2022, tatu: not yet used
1945+
/*
1946+
private final static int _padLastQuad(int q, int bytes) {
1947+
return (bytes == 4) ? q : (q | (-1 << (bytes << 3)));
1948+
}
1949+
*/
1950+
19431951
/*
19441952
/**********************************************************
19451953
/* Internal methods, secondary parsing

0 commit comments

Comments
 (0)