Add Test on LZ4 Format Input Buffer Overrun
This commit is contained in:
parent
743b23878e
commit
62c746dcf9
@ -374,9 +374,9 @@ test-pool: poolTests
|
|||||||
test-lz4: ZSTD = LD_LIBRARY_PATH=/usr/local/lib $(PRGDIR)/zstd
|
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_LZ4 = LD_LIBRARY_PATH=/usr/local/lib ./lz4
|
||||||
test-lz4: ZSTD_UNLZ4 = LD_LIBRARY_PATH=/usr/local/lib ./unlz4
|
test-lz4: ZSTD_UNLZ4 = LD_LIBRARY_PATH=/usr/local/lib ./unlz4
|
||||||
test-lz4: zstd decodecorpus
|
test-lz4: zstd decodecorpus datagen
|
||||||
ln -s $(PRGDIR)/zstd lz4
|
[ -f lz4 ] || ln -s $(PRGDIR)/zstd lz4
|
||||||
ln -s $(PRGDIR)/zstd unlz4
|
[ -f unlz4 ] || ln -s $(PRGDIR)/zstd unlz4
|
||||||
|
|
||||||
./decodecorpus -ptmp
|
./decodecorpus -ptmp
|
||||||
# lz4 -> zstd
|
# lz4 -> zstd
|
||||||
@ -402,6 +402,8 @@ test-lz4: zstd decodecorpus
|
|||||||
$(ZSTD) -d | \
|
$(ZSTD) -d | \
|
||||||
cmp - tmp
|
cmp - tmp
|
||||||
|
|
||||||
|
./datagen -g384KB | $(ZSTD) --format=lz4 | $(ZSTD) -d > /dev/null
|
||||||
|
|
||||||
rm tmp lz4 unlz4
|
rm tmp lz4 unlz4
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user