From: W. Felix Handte Date: Tue, 28 Nov 2017 17:06:48 +0000 (-0500) Subject: Add Test on LZ4 Format Input Buffer Overrun X-Git-Tag: v1.3.3^2~25^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62c746dcf90c9f69f404df08533795d72083361d;p=thirdparty%2Fzstd.git Add Test on LZ4 Format Input Buffer Overrun --- diff --git a/tests/Makefile b/tests/Makefile index 11d55a75d..f944fd5a8 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -374,9 +374,9 @@ test-pool: poolTests test-lz4: ZSTD = LD_LIBRARY_PATH=/usr/local/lib $(PRGDIR)/zstd test-lz4: ZSTD_LZ4 = LD_LIBRARY_PATH=/usr/local/lib ./lz4 test-lz4: ZSTD_UNLZ4 = LD_LIBRARY_PATH=/usr/local/lib ./unlz4 -test-lz4: zstd decodecorpus - ln -s $(PRGDIR)/zstd lz4 - ln -s $(PRGDIR)/zstd unlz4 +test-lz4: zstd decodecorpus datagen + [ -f lz4 ] || ln -s $(PRGDIR)/zstd lz4 + [ -f unlz4 ] || ln -s $(PRGDIR)/zstd unlz4 ./decodecorpus -ptmp # lz4 -> zstd @@ -402,6 +402,8 @@ test-lz4: zstd decodecorpus $(ZSTD) -d | \ cmp - tmp + ./datagen -g384KB | $(ZSTD) --format=lz4 | $(ZSTD) -d > /dev/null + rm tmp lz4 unlz4 endif