summaryrefslogtreecommitdiff
path: root/contrib/puff/pufftest.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2013-01-21 10:15:51 -0800
committerMark Adler <madler@alumni.caltech.edu>2013-01-21 10:17:45 -0800
commit10056909c00bca2684340856ce20272f3fd8fa43 (patch)
tree75a1b8606c954ae4c483479091de21d3dfb226f3 /contrib/puff/pufftest.c
parentb6c5057ca18b59d8c20cccac3bbbd84206fd4e83 (diff)
downloadzlib-10056909c00bca2684340856ce20272f3fd8fa43.tar.gz
zlib-10056909c00bca2684340856ce20272f3fd8fa43.tar.bz2
zlib-10056909c00bca2684340856ce20272f3fd8fa43.zip
Check for invalid code length codes in contrib/puff.
Without this fix, it would be possible to construct inputs to puff that would cause it to segfault.
Diffstat (limited to '')
-rw-r--r--contrib/puff/pufftest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/puff/pufftest.c b/contrib/puff/pufftest.c
index 76e35f6..7764814 100644
--- a/contrib/puff/pufftest.c
+++ b/contrib/puff/pufftest.c
@@ -1,8 +1,8 @@
1/* 1/*
2 * pufftest.c 2 * pufftest.c
3 * Copyright (C) 2002-2010 Mark Adler 3 * Copyright (C) 2002-2013 Mark Adler
4 * For conditions of distribution and use, see copyright notice in puff.h 4 * For conditions of distribution and use, see copyright notice in puff.h
5 * version 2.2, 25 Apr 2010 5 * version 2.3, 21 Jan 2013
6 */ 6 */
7 7
8/* Example of how to use puff(). 8/* Example of how to use puff().