Fix #1868 (LitError: Reset table entry out of bounds)

This commit is contained in:
Kovid Goyal 2009-02-17 14:07:44 -08:00
commit 2f7f23580f

View file

@ -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: