aboutsummaryrefslogtreecommitdiffstats
path: root/make/exec-z
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-22 16:51:21 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-22 20:13:10 +0200
commit83ec09f66c4548d356423894708e6727aaa39c88 (patch)
tree6eeda68288a72a8a1d90a908d5a624e55e3c43fc /make/exec-z
parent85ef2cb6fd3d3e9dbeee013eceeb19b9f3c7f731 (diff)
downloadqpdf-83ec09f66c4548d356423894708e6727aaa39c88.tar.zst
Do memory checks
Slightly improve memory cleanup in Pl_DCT Make it easier to test with valgrind
Diffstat (limited to 'make/exec-z')
-rwxr-xr-xmake/exec-z24
1 files changed, 24 insertions, 0 deletions
diff --git a/make/exec-z b/make/exec-z
new file mode 100755
index 00000000..dc21dbc1
--- /dev/null
+++ b/make/exec-z
@@ -0,0 +1,24 @@
+#!/bin/sh
+# This script is used for valgrind testing. See README.maintainer.
+
+# Create a suppressions file. This can be updated by running valgrind
+# with --gen-suppressions=yes.
+test -f /tmp/a.supp || cat > /tmp/a.supp <<EOF
+{
+ zlib1
+ Memcheck:Cond
+ fun:inflateReset2
+ fun:inflateInit2_
+}
+{
+ index
+ Memcheck:Cond
+ fun:index
+ fun:expand_dynamic_string_token
+ fun:_dl_map_object
+ fun:map_doit
+}
+EOF
+
+exec valgrind --suppressions=/tmp/a.supp -q \
+ `dirname $0`/z/`basename $0` ${1+"$@"}