mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1868. Warn instead of error on bad LZX reset table entries.
This commit is contained in:
parent
49a55d1da6
commit
aed8ad92ca
@ -780,7 +780,7 @@ class LitReader(object):
|
||||
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…
x
Reference in New Issue
Block a user