summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2020-08-10 19:52:32 (GMT)
committerGitHub <noreply@github.com>2020-08-10 19:52:32 (GMT)
commitb26c140a54a0d04fe71b0bfc3a24915b887308bc (patch)
treed75cf56ceb8c8d9307aed8dd85a95ec65f3e03f8 /tests
parentad14a98a0915f2bcc3cc2bbc0f2ab827fc5932c2 (diff)
parent7b1b078dfcedd169332b0583d34daa65b2c585db (diff)
downloadlz4-b26c140a54a0d04fe71b0bfc3a24915b887308bc.zip
lz4-b26c140a54a0d04fe71b0bfc3a24915b887308bc.tar.gz
lz4-b26c140a54a0d04fe71b0bfc3a24915b887308bc.tar.bz2
Merge pull request #895 from lz4/hugefast
Fix #876
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 1f8321c..05cae15 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -152,6 +152,9 @@ DD:=dd
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
+.PHONY: check
+check: test-lz4-essentials
+
.PHONY: test
test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-install test-amalgamation listTest
@@ -349,6 +352,8 @@ test-lz4-basic: lz4 datagen unlz4 lz4cat
test "$(shell ./datagen -g20KB | $(LZ4) -c --fast=1 | wc -c)" -eq "$(shell ./datagen -g20KB| $(LZ4) -c --fast| wc -c)" # checks default fast compression is -1
! $(LZ4) -c --fast=0 tmp-tlb-dg20K # lz4 should fail when fast=0
! $(LZ4) -c --fast=-1 tmp-tlb-dg20K # lz4 should fail when fast=-1
+ # High --fast values can result in out-of-bound dereferences #876
+ ./datagen -g1M | $(LZ4) -c --fast=999999999 > /dev/null
# Test for #596
@echo "TEST" > tmp-tlb-test
$(LZ4) -m tmp-tlb-test