Commit 12c75fd
committed
Fix ArrayCache usage with LZMAInputStream
Add a missing initialization to LZDecoder's constructor. The same
initialization is done in LZDecoder.reset(). LZMA2InputStream
always calls it before decoding anything, thus this bug didn't break
LZMA2 decoding. However, LZMAInputStream has no reason to call
LZDecoder.reset(), and thus the missing initialization in the
constructor meant that ArrayCache didn't work with LZMAInputStream.
Fixes: c5569e4 ("Add ArrayCache support to LZMA and LZMA2 coders, part 1.")
Fixes: #231 parent e52d9ad commit 12c75fd
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
0 commit comments