]> wimlib.net Git - wimlib/commit
lzx-decompress.c: Don't allow using offsets of 0
authorEric Biggers <ebiggers3@gmail.com>
Sat, 6 Sep 2014 06:08:03 +0000 (01:08 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 6 Sep 2014 06:08:03 +0000 (01:08 -0500)
commite02ea0a6b4aec8b3475ea24522f254affb6cfcd3
tree42b24d73d8594ce8e319e48a7b09b16b10ba8ac6
parent3519f882f1b44ef45d9f9c5762b53d0c8f8da55a
lzx-decompress.c: Don't allow using offsets of 0

This can happen if an uncompressed block is present, since then the match
offset LRU queue is filled directly from the input buffer.  Too-large
offsets were already checked later, but offsets of 0 would cause
uninitialized memory to remain in the output buffer.
src/lzx-decompress.c