Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/ZLIB]: src/common/dist/zlib Import zlib-1.2.13, previous was 1.2.10



details:   https://anonhg.NetBSD.org/src/rev/6b33e5d6a0f2
branches:  ZLIB
changeset: 371893:6b33e5d6a0f2
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 15 19:41:16 2022 +0000

description:
Import zlib-1.2.13, previous was 1.2.10

Changes in 1.2.13 (13 Oct 2022)
- Fix configure issue that discarded provided CC definition
- Correct incorrect inputs provided to the CRC functions
- Repair prototypes and exporting of new CRC functions
- Fix inflateBack to detect invalid input with distances too far
- Have infback() deliver all of the available output up to any error
- Fix a bug when getting a gzip header extra field with inflate()
- Fix bug in block type selection when Z_FIXED used
- Tighten deflateBound bounds
- Remove deleted assembler code references
- Various portability and appearance improvements

Changes in 1.2.12 (27 Mar 2022)
- Cygwin does not have _wopen(), so do not create gzopen_w() there
- Permit a deflateParams() parameter change as soon as possible
- Limit hash table inserts after switch from stored deflate
- Fix bug when window full in deflate_stored()
- Fix CLEAR_HASH macro to be usable as a single statement
- Avoid a conversion error in gzseek when off_t type too small
- Have Makefile return non-zero error code on test failure
- Avoid some conversion warnings in gzread.c and gzwrite.c
- Update use of errno for newer Windows CE versions
- Small speedup to inflate [psumbera]
- Return an error if the gzputs string length can't fit in an int
- Add address checking in clang to -w option of configure
- Don't compute check value for raw inflate if asked to validate
- Handle case where inflateSync used when header never processed
- Avoid the use of ptrdiff_t
- Avoid an undefined behavior of memcpy() in gzappend()
- Avoid undefined behaviors of memcpy() in gz*printf()
- Avoid an undefined behavior of memcpy() in _tr_stored_block()
- Make the names in functions declarations identical to definitions
- Remove old assembler code in which bugs have manifested
- Fix deflateEnd() to not report an error at start of raw deflate
- Add legal disclaimer to README
- Emphasize the need to continue decompressing gzip members
- Correct the initialization requirements for deflateInit2()
- Fix a bug that can crash deflate on some input when using Z_FIXED
- Assure that the number of bits for deflatePrime() is valid
- Use a structure to make globals in enough.c evident
- Use a macro for the printf format of big_t in enough.c
- Clean up code style in enough.c, update version
- Use inline function instead of macro for index in enough.c
- Clarify that prefix codes are counted in enough.c
- Show all the codes for the maximum tables size in enough.c
- Add gznorm.c example, which normalizes gzip files
- Fix the zran.c example to work on a multiple-member gzip file
- Add tables for crc32_combine(), to speed it up by a factor of 200
- Add crc32_combine_gen() and crc32_combine_op() for fast combines
- Speed up software CRC-32 computation by a factor of 1.5 to 3
- Use atomic test and set, if available, for dynamic CRC tables
- Don't bother computing check value after successful inflateSync()
- Correct comment in crc32.c
- Add use of the ARMv8 crc32 instructions when requested
- Use ARM crc32 instructions if the ARM architecture has them
- Explicitly note that the 32-bit check values are 32 bits
- Avoid adding empty gzip member after gzflush with Z_FINISH
- Fix memory leak on error in gzlog.c
- Fix error in comment on the polynomial representation of a byte
- Clarify gz* function interfaces, referring to parameter names
- Change macro name in inflate.c to avoid collision in VxWorks
- Correct typo in blast.c
- Improve portability of contrib/minizip
- Fix indentation in minizip's zip.c
- Replace black/white with allow/block. (theresa-m)
- minizip warning fix if MAXU32 already defined. (gvollant)
- Fix unztell64() in minizip to work past 4GB. (Daniël Hörchner)
- Clean up minizip to reduce warnings for testing
- Add fallthrough comments for gcc
- Eliminate use of ULL constants
- Separate out address sanitizing from warnings in configure
- Remove destructive aspects of make distclean
- Check for cc masquerading as gcc or clang in configure
- Fix crc32.c to compile local functions only if used

Changes in 1.2.11 (15 Jan 2017)
- Fix deflate stored bug when pulling last block from window
- Permit immediate deflateParams changes before any deflate input

diffstat:

 common/dist/zlib/ChangeLog                    |  2 +-
 common/dist/zlib/adler32.c                    |  2 +-
 common/dist/zlib/compress.c                   |  2 +-
 common/dist/zlib/contrib/ada/buffer_demo.adb  |  2 +-
 common/dist/zlib/contrib/ada/mtest.adb        |  2 +-
 common/dist/zlib/contrib/ada/read.adb         |  2 +-
 common/dist/zlib/contrib/ada/test.adb         |  2 +-
 common/dist/zlib/contrib/ada/zlib-streams.adb |  2 +-
 common/dist/zlib/contrib/ada/zlib-streams.ads |  2 +-
 common/dist/zlib/contrib/ada/zlib-thin.adb    |  2 +-
 common/dist/zlib/contrib/ada/zlib-thin.ads    |  2 +-
 common/dist/zlib/contrib/ada/zlib.adb         |  2 +-
 common/dist/zlib/contrib/ada/zlib.ads         |  2 +-
 common/dist/zlib/contrib/iostream2/zstream.h  |  2 +-
 common/dist/zlib/crc32.c                      |  2 +-
 common/dist/zlib/deflate.c                    |  2 +-
 common/dist/zlib/deflate.h                    |  2 +-
 common/dist/zlib/test/example.c               |  2 +-
 common/dist/zlib/test/minigzip.c              |  2 +-
 common/dist/zlib/trees.c                      |  2 +-
 common/dist/zlib/uncompr.c                    |  2 +-
 common/dist/zlib/zconf.h                      |  2 +-
 common/dist/zlib/zconf.h.cmakein              |  2 +-
 common/dist/zlib/zconf.h.in                   |  2 +-
 common/dist/zlib/zutil.c                      |  2 +-
 common/dist/zlib/zutil.h                      |  2 +-
 26 files changed, 26 insertions(+), 26 deletions(-)

diffs (truncated from 312 to 300 lines):

diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/ChangeLog
--- a/common/dist/zlib/ChangeLog        Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/ChangeLog        Sat Oct 15 19:41:16 2022 +0000
@@ -1334,7 +1334,7 @@
 - use _fdopen instead of fdopen for MSC >= 6.0 (Thomas Fanslau)
 - added makelcc.bat for lcc-win32 (Tom St Denis)
 - in Makefile.dj2, use copy and del instead of install and rm (Frank Donahoe)
-- Avoid expanded $Id: ChangeLog,v 1.1.1.3 2022/10/15 19:38:37 christos Exp $. Use "rcs -kb" or "cvs admin -kb" to avoid Id expansion
+- Avoid expanded Id. Use "rcs -kb" or "cvs admin -kb" to avoid Id expansion
 - check for unistd.h in configure (for off_t)
 - remove useless check parameter in inflate_blocks_free
 - avoid useless assignment of s->check to itself in inflate_blocks_new
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/adler32.c
--- a/common/dist/zlib/adler32.c        Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/adler32.c        Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: adler32.c,v 1.1.1.2 2017/01/10 00:25:29 christos Exp $ */
+/* @(#) Id */
 
 #include "zutil.h"
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/compress.c
--- a/common/dist/zlib/compress.c       Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/compress.c       Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: compress.c,v 1.1.1.3 2022/10/15 19:38:37 christos Exp $ */
+/* @(#) Id */
 
 #define ZLIB_INTERNAL
 #include "zlib.h"
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/buffer_demo.adb
--- a/common/dist/zlib/contrib/ada/buffer_demo.adb      Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/buffer_demo.adb      Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 --
---  $Id: buffer_demo.adb,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: buffer_demo.adb,v 1.3 2004/09/06 06:55:35 vagul Exp 
 
 --  This demo program provided by Dr Steve Sangwine <sjs%essex.ac.uk@localhost>
 --
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/mtest.adb
--- a/common/dist/zlib/contrib/ada/mtest.adb    Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/mtest.adb    Sat Oct 15 19:41:16 2022 +0000
@@ -8,7 +8,7 @@
 --  Continuous test for ZLib multithreading. If the test would fail
 --  we should provide thread safe allocation routines for the Z_Stream.
 --
---  $Id: mtest.adb,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: mtest.adb,v 1.4 2004/07/23 07:49:54 vagul Exp 
 
 with ZLib;
 with Ada.Streams;
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/read.adb
--- a/common/dist/zlib/contrib/ada/read.adb     Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/read.adb     Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 
---  $Id: read.adb,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: read.adb,v 1.8 2004/05/31 10:53:40 vagul Exp 
 
 --  Test/demo program for the generic read interface.
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/test.adb
--- a/common/dist/zlib/contrib/ada/test.adb     Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/test.adb     Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 
---  $Id: test.adb,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: test.adb,v 1.17 2003/08/12 12:13:30 vagul Exp 
 
 --  The program has a few aims.
 --  1. Test ZLib.Ada95 thick binding functionality.
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/zlib-streams.adb
--- a/common/dist/zlib/contrib/ada/zlib-streams.adb     Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/zlib-streams.adb     Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 
---  $Id: zlib-streams.adb,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: zlib-streams.adb,v 1.10 2004/05/31 10:53:40 vagul Exp 
 
 with Ada.Unchecked_Deallocation;
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/zlib-streams.ads
--- a/common/dist/zlib/contrib/ada/zlib-streams.ads     Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/zlib-streams.ads     Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 
---  $Id: zlib-streams.ads,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: zlib-streams.ads,v 1.12 2004/05/31 10:53:40 vagul Exp 
 
 package ZLib.Streams is
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/zlib-thin.adb
--- a/common/dist/zlib/contrib/ada/zlib-thin.adb        Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/zlib-thin.adb        Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 
---  $Id: zlib-thin.adb,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: zlib-thin.adb,v 1.8 2003/12/14 18:27:31 vagul Exp 
 
 package body ZLib.Thin is
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/zlib-thin.ads
--- a/common/dist/zlib/contrib/ada/zlib-thin.ads        Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/zlib-thin.ads        Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 
---  $Id: zlib-thin.ads,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: zlib-thin.ads,v 1.11 2004/07/23 06:33:11 vagul Exp 
 
 with Interfaces.C.Strings;
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/zlib.adb
--- a/common/dist/zlib/contrib/ada/zlib.adb     Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/zlib.adb     Sat Oct 15 19:41:16 2022 +0000
@@ -6,7 +6,7 @@
 --  Open source license information is in the zlib.ads file.  --
 ----------------------------------------------------------------
 
---  $Id: zlib.adb,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: zlib.adb,v 1.31 2004/09/06 06:53:19 vagul Exp 
 
 with Ada.Exceptions;
 with Ada.Unchecked_Conversion;
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/ada/zlib.ads
--- a/common/dist/zlib/contrib/ada/zlib.ads     Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/ada/zlib.ads     Sat Oct 15 19:41:16 2022 +0000
@@ -25,7 +25,7 @@
 --  covered by the  GNU Public License.                                     --
 ------------------------------------------------------------------------------
 
---  $Id: zlib.ads,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+--  Id: zlib.ads,v 1.26 2004/09/06 06:53:19 vagul Exp 
 
 with Ada.Streams;
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/contrib/iostream2/zstream.h
--- a/common/dist/zlib/contrib/iostream2/zstream.h      Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/contrib/iostream2/zstream.h      Sat Oct 15 19:41:16 2022 +0000
@@ -21,7 +21,7 @@
 
 /*
  * zstream.h - C++ interface to the 'zlib' general purpose compression library
- * $Id: zstream.h,v 1.1.1.2 2017/01/10 00:25:30 christos Exp $
+ * Id: zstream.h 1.1 1997-06-25 12:00:56+02 tyge Exp tyge 
  */
 
 #include <strstream.h>
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/crc32.c
--- a/common/dist/zlib/crc32.c  Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/crc32.c  Sat Oct 15 19:41:16 2022 +0000
@@ -7,7 +7,7 @@
  * Kadatch and Jenkins (2010). See doc/crc-doc.1.0.pdf in this distribution.
  */
 
-/* @(#) $Id: crc32.c,v 1.1.1.3 2022/10/15 19:38:37 christos Exp $ */
+/* @(#) Id */
 
 /*
   Note on the use of DYNAMIC_CRC_TABLE: there is no mutex or semaphore
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/deflate.c
--- a/common/dist/zlib/deflate.c        Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/deflate.c        Sat Oct 15 19:41:16 2022 +0000
@@ -47,7 +47,7 @@
  *
  */
 
-/* @(#) $Id: deflate.c,v 1.1.1.3 2022/10/15 19:38:37 christos Exp $ */
+/* @(#) Id */
 
 #include "deflate.h"
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/deflate.h
--- a/common/dist/zlib/deflate.h        Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/deflate.h        Sat Oct 15 19:41:16 2022 +0000
@@ -8,7 +8,7 @@
    subject to change. Applications should only use zlib.h.
  */
 
-/* @(#) $Id: deflate.h,v 1.1.1.3 2022/10/15 19:38:37 christos Exp $ */
+/* @(#) Id */
 
 #ifndef DEFLATE_H
 #define DEFLATE_H
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/test/example.c
--- a/common/dist/zlib/test/example.c   Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/test/example.c   Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: example.c,v 1.1.1.2 2022/10/15 19:38:38 christos Exp $ */
+/* @(#) Id */
 
 #include "zlib.h"
 #include <stdio.h>
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/test/minigzip.c
--- a/common/dist/zlib/test/minigzip.c  Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/test/minigzip.c  Sat Oct 15 19:41:16 2022 +0000
@@ -13,7 +13,7 @@
  * or in pipe mode.
  */
 
-/* @(#) $Id: minigzip.c,v 1.1.1.2 2022/10/15 19:38:38 christos Exp $ */
+/* @(#) Id */
 
 #include "zlib.h"
 #include <stdio.h>
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/trees.c
--- a/common/dist/zlib/trees.c  Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/trees.c  Sat Oct 15 19:41:16 2022 +0000
@@ -30,7 +30,7 @@
  *          Addison-Wesley, 1983. ISBN 0-201-06672-6.
  */
 
-/* @(#) $Id: trees.c,v 1.1.1.3 2022/10/15 19:38:38 christos Exp $ */
+/* @(#) Id */
 
 /* #define GEN_TREES_H */
 
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/uncompr.c
--- a/common/dist/zlib/uncompr.c        Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/uncompr.c        Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: uncompr.c,v 1.1.1.3 2022/10/15 19:38:38 christos Exp $ */
+/* @(#) Id */
 
 #define ZLIB_INTERNAL
 #include "zlib.h"
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/zconf.h
--- a/common/dist/zlib/zconf.h  Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/zconf.h  Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: zconf.h,v 1.1.1.3 2022/10/15 19:38:38 christos Exp $ */
+/* @(#) Id */
 
 #ifndef ZCONF_H
 #define ZCONF_H
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/zconf.h.cmakein
--- a/common/dist/zlib/zconf.h.cmakein  Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/zconf.h.cmakein  Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: zconf.h.cmakein,v 1.1.1.2 2022/10/15 19:38:37 christos Exp $ */
+/* @(#) Id */
 
 #ifndef ZCONF_H
 #define ZCONF_H
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/zconf.h.in
--- a/common/dist/zlib/zconf.h.in       Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/zconf.h.in       Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: zconf.h.in,v 1.1.1.2 2022/10/15 19:38:37 christos Exp $ */
+/* @(#) Id */
 
 #ifndef ZCONF_H
 #define ZCONF_H
diff -r 8161536d2025 -r 6b33e5d6a0f2 common/dist/zlib/zutil.c
--- a/common/dist/zlib/zutil.c  Sat Oct 15 19:38:37 2022 +0000
+++ b/common/dist/zlib/zutil.c  Sat Oct 15 19:41:16 2022 +0000
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: zutil.c,v 1.1.1.3 2022/10/15 19:38:37 christos Exp $ */
+/* @(#) Id */
 
 #include "zutil.h"
 #ifndef Z_SOLO



Home | Main Index | Thread Index | Old Index