File tree 1 file changed +11
-3
lines changed
smile/src/main/java/com/fasterxml/jackson/dataformat/smile
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1866,9 +1866,9 @@ private final String _findDecodedFromSymbols(final int len) throws IOException
1866
1866
}
1867
1867
1868
1868
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 );
1872
1872
1873
1873
if (len < 13 ) {
1874
1874
int q3 = (inBuf [inPtr ++] & 0xFF );
@@ -1940,6 +1940,14 @@ private static int[] _growArrayTo(int[] arr, int minSize) {
1940
1940
return Arrays .copyOf (arr , size );
1941
1941
}
1942
1942
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
+
1943
1951
/*
1944
1952
/**********************************************************
1945
1953
/* Internal methods, secondary parsing
You can’t perform that action at this time.
0 commit comments