summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:38 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:38 -0700
commitf0e76a6634eb26e3ddc6dfc6f2489553eff8c8f4 (patch)
tree8bf5aaebe407006d34a13ae68659e85e1b55504f /contrib
parent7a33a861d1526894272a8a4b08527ce32316d750 (diff)
downloadzlib-1.2.1.1.tar.gz
zlib-1.2.1.1.tar.bz2
zlib-1.2.1.1.zip
zlib 1.2.1.1v1.2.1.1
Diffstat (limited to 'contrib')
-rw-r--r--contrib/infback9/inftree9.c4
-rw-r--r--contrib/puff/puff.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c
index fe76a1b..337a277 100644
--- a/contrib/infback9/inftree9.c
+++ b/contrib/infback9/inftree9.c
@@ -9,7 +9,7 @@
9#define MAXBITS 15 9#define MAXBITS 15
10 10
11const char inflate9_copyright[] = 11const char inflate9_copyright[] =
12 " inflate9 1.2.1 Copyright 1995-2003 Mark Adler "; 12 " inflate9 1.2.1.1 Copyright 1995-2003 Mark Adler ";
13/* 13/*
14 If you use the zlib library in a product, an acknowledgment is welcome 14 If you use the zlib library in a product, an acknowledgment is welcome
15 in the documentation of your product. If for some reason you cannot 15 in the documentation of your product. If for some reason you cannot
@@ -64,7 +64,7 @@ unsigned short FAR *work;
64 static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 64 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
65 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 65 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129,
66 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, 66 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132,
67 133, 133, 133, 133, 144, 76, 66}; 67 133, 133, 133, 133, 144, 202, 196};
68 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ 68 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */
69 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 69 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,
70 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 70 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073,
diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c
index 7a8116b..ce0cc40 100644
--- a/contrib/puff/puff.c
+++ b/contrib/puff/puff.c
@@ -1,8 +1,8 @@
1/* 1/*
2 * puff.c 2 * puff.c
3 * Copyright (C) 2002, 2003 Mark Adler 3 * Copyright (C) 2002-2004 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 1.7, 3 Mar 2003 5 * version 1.8, 9 Jan 2004
6 * 6 *
7 * puff.c is a simple inflate written to be an unambiguous way to specify the 7 * puff.c is a simple inflate written to be an unambiguous way to specify the
8 * deflate format. It is not written for speed but rather simplicity. As a 8 * deflate format. It is not written for speed but rather simplicity. As a
@@ -60,6 +60,7 @@
60 * 1.6 7 Aug 2002 - Minor format changes 60 * 1.6 7 Aug 2002 - Minor format changes
61 * 1.7 3 Mar 2003 - Added test code for distribution 61 * 1.7 3 Mar 2003 - Added test code for distribution
62 * - Added zlib-like license 62 * - Added zlib-like license
63 * 1.8 9 Jan 2004 - Added some comments on no distance codes case
63 */ 64 */
64 65
65#include <setjmp.h> /* for setjmp(), longjmp(), and jmp_buf */ 66#include <setjmp.h> /* for setjmp(), longjmp(), and jmp_buf */
@@ -577,6 +578,9 @@ local int fixed(struct state *s)
577 * block is fewer bits), but it is allowed by the format. So incomplete 578 * block is fewer bits), but it is allowed by the format. So incomplete
578 * literal/length codes of one symbol should also be permitted. 579 * literal/length codes of one symbol should also be permitted.
579 * 580 *
581 * - If there are only literal codes and no lengths, then there are no distance
582 * codes. This is represented by one distance code with zero bits.
583 *
580 * - The list of up to 286 length/literal lengths and up to 30 distance lengths 584 * - The list of up to 286 length/literal lengths and up to 30 distance lengths
581 * are themselves compressed using Huffman codes and run-length encoding. In 585 * are themselves compressed using Huffman codes and run-length encoding. In
582 * the list of code lengths, a 0 symbol means no code, a 1..15 symbol means 586 * the list of code lengths, a 0 symbol means no code, a 1..15 symbol means