summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-07 21:14:50 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-07 21:14:50 +0200
commitb49cb9215a9101af40ec0b4c4c16d5afe2f16b17 (patch)
tree8342829543698014bd59ae0dc97bc04dcc550794 /crawl-ref/source/misc
parent30cc5bce8aad70af6ae5824671e91ad1b2ff9694 (diff)
downloadcrawl-ref-b49cb9215a9101af40ec0b4c4c16d5afe2f16b17.tar.gz
crawl-ref-b49cb9215a9101af40ec0b4c4c16d5afe2f16b17.zip
Suppress a valgrind warning for zlib <=1.2.3
Diffstat (limited to 'crawl-ref/source/misc')
-rw-r--r--crawl-ref/source/misc/valgrind-suppress.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/misc/valgrind-suppress.txt b/crawl-ref/source/misc/valgrind-suppress.txt
index 7c86c38065..9c01312997 100644
--- a/crawl-ref/source/misc/valgrind-suppress.txt
+++ b/crawl-ref/source/misc/valgrind-suppress.txt
@@ -62,3 +62,16 @@
fun:getpwuid_r@@GLIBC_2.2.5
fun:getpwuid
}
+
+# Zlib examines the data past the end of the buffer by design to reduce
+# the number of boundary checks. This doesn't have any external effects.
+# http://www.zlib.net/zlib_faq.html#faq36
+# "Even though the code was correct, versions 1.2.4 and later was changed
+# to not stimulate these checkers."
+{
+ zlib_lookhead_optimization
+ Memcheck:Cond
+ fun:longest_match
+ fun:deflate_slow
+ fun:deflate
+}