< prev index next >

src/java.base/share/native/libzip/zlib/inftrees.c

Print this page
@@ -21,21 +21,21 @@
   * or visit www.oracle.com if you need additional information or have any
   * questions.
   */
  
  /* inftrees.c -- generate Huffman trees for efficient decoding
-  * Copyright (C) 1995-2022 Mark Adler
+  * Copyright (C) 1995-2024 Mark Adler
   * For conditions of distribution and use, see copyright notice in zlib.h
   */
  
  #include "zutil.h"
  #include "inftrees.h"
  
  #define MAXBITS 15
  
  const char inflate_copyright[] =
-    " inflate 1.2.13 Copyright 1995-2022 Mark Adler ";
+    " inflate 1.3.1 Copyright 1995-2024 Mark Adler ";
  /*
    If you use the zlib library in a product, an acknowledgment is welcome
    in the documentation of your product. If for some reason you cannot
    include such an acknowledgment, I would appreciate that you keep this
    copyright string in the executable of your product.

@@ -51,18 +51,13 @@
     on return points to the next available entry's address.  bits is the
     requested root table index bits, and on return it is the actual root
     table index bits.  It will differ if the request is greater than the
     longest code or if it is less than the shortest code.
   */
- int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work)
- codetype type;
- unsigned short FAR *lens;
- unsigned codes;
- code FAR * FAR *table;
- unsigned FAR *bits;
- unsigned short FAR *work;
- {
+ int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
+                                 unsigned codes, code FAR * FAR *table,
+                                 unsigned FAR *bits, unsigned short FAR *work) {
      unsigned len;               /* a code's length in bits */
      unsigned sym;               /* index of code symbols */
      unsigned min, max;          /* minimum and maximum code lengths */
      unsigned root;              /* number of index bits for root table */
      unsigned curr;              /* number of index bits for current table */

@@ -84,11 +79,11 @@
      static const unsigned short lbase[31] = { /* Length codes 257..285 base */
          3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
          35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
      static const unsigned short lext[31] = { /* Length codes 257..285 extra */
          16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
-         19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 194, 65};
+         19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 203, 77};
      static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
          1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
          257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
          8193, 12289, 16385, 24577, 0, 0};
      static const unsigned short dext[32] = { /* Distance codes 0..29 extra */
< prev index next >