mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 02:23:43 +02:00
Fix #1868 (LitError: Reset table entry out of bounds)
This commit is contained in:
commit
2f7f23580f
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@ def _decompress(self, content, control, reset_table):
|
|||
if u != 0:
|
||||
raise LitError("Reset table entry greater than 32 bits")
|
||||
if size >= len(content):
|
||||
raise LitError("Reset table entry out of bounds")
|
||||
self._warn("LZX reset table entry out of bounds")
|
||||
if bytes_remaining >= window_bytes:
|
||||
lzx.reset()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue