]> wimlib.net Git - wimlib/commit
lzx-compress.c: Honor cache_limit
authorEric Biggers <ebiggers3@gmail.com>
Sat, 7 Jun 2014 21:46:39 +0000 (16:46 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 7 Jun 2014 21:47:33 +0000 (16:47 -0500)
commit60b890543d514a9857bc18758e1de956d2516160
tree888f2cdbd928a5c90d1a78bb05fb190b035aa648
parent81c83fa2dbb44e788f234ddd5427c00e33c12d52
lzx-compress.c:  Honor cache_limit

This ensures the match cache is never overrun.  If for some reason we
average more than LZX_CACHE_PER_POS (currently 8) matches per position,
_excluding skipped positions_, just don't return any more matches.
src/lzx-compress.c