mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1868 (LitError: Reset table entry out of bounds)
This commit is contained in:
commit
2f7f23580f
@ -780,7 +780,7 @@ class LitReader(object):
|
|||||||
if u != 0:
|
if u != 0:
|
||||||
raise LitError("Reset table entry greater than 32 bits")
|
raise LitError("Reset table entry greater than 32 bits")
|
||||||
if size >= len(content):
|
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:
|
if bytes_remaining >= window_bytes:
|
||||||
lzx.reset()
|
lzx.reset()
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user