Fix #1868. Warn instead of error on bad LZX reset table entries.

This commit is contained in:
Marshall T. Vandegrift 2009-02-18 00:51:27 -05:00
parent 49a55d1da6
commit aed8ad92ca

View File

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