Fossil SCM

Merge the update to zLib-1.3.1.

drh 2024-04-21 18:51 trunk merge
Commit 64ce68d590e62e252539049266b7fc9274d36538ed3eb930bfb82fbc8730120d
60 files changed +24 -19 +10 +1 -2 +8 -8 +3 -3 +5 -4 +1 -1 +1 -1 +1 -1 +3 -3 +2 -2 +2 -2 +1 -1 +1 -1 +1 -1 +16 -2 +4 -4 +1 -1 +16 -5 +2 -2 +1 -1 +4 -4 +81 -68 +4 -4 +1 -1 +4 -4 +1 -1 +4 -4 +1 -1 +4 -4 +1 -1 +4 -4 +1 -1 +36 -11 +33 -2 +2 -2 +1 -1 +2 -6 +6 -6 +1 -1 +3 -3 +2 -2 +1 -1 +1 -1 +3 -3 +5 -5 +13 -12 +16 -16 +2 -2 +17 -3 +2 -18 +4 -4 +1 -9 +1 -9 +1 -9 +3 -3 +11 -11 +100 -100 +3 -24
~ compat/zlib/CMakeLists.txt ~ compat/zlib/ChangeLog ~ compat/zlib/FAQ ~ compat/zlib/Makefile.in ~ compat/zlib/README ~ compat/zlib/configure ~ compat/zlib/contrib/delphi/ZLib.pas ~ compat/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs ~ compat/zlib/contrib/dotzlib/DotZLib/UnitTests.cs ~ compat/zlib/contrib/infback9/inftree9.c ~ compat/zlib/contrib/infback9/inftree9.h ~ compat/zlib/contrib/iostream3/zfstream.h ~ compat/zlib/contrib/minizip/Makefile ~ compat/zlib/contrib/minizip/configure.ac ~ compat/zlib/contrib/minizip/ioapi.h ~ compat/zlib/contrib/minizip/miniunz.c ~ compat/zlib/contrib/minizip/unzip.c ~ compat/zlib/contrib/minizip/unzip.h ~ compat/zlib/contrib/minizip/zip.c ~ compat/zlib/contrib/minizip/zip.h ~ compat/zlib/contrib/pascal/zlibpas.pas ~ compat/zlib/contrib/puff/puff.c ~ compat/zlib/contrib/vstudio/readme.txt ~ compat/zlib/contrib/vstudio/vc10/zlib.rc ~ compat/zlib/contrib/vstudio/vc10/zlibvc.def ~ compat/zlib/contrib/vstudio/vc11/zlib.rc ~ compat/zlib/contrib/vstudio/vc11/zlibvc.def ~ compat/zlib/contrib/vstudio/vc12/zlib.rc ~ compat/zlib/contrib/vstudio/vc12/zlibvc.def ~ compat/zlib/contrib/vstudio/vc14/zlib.rc ~ compat/zlib/contrib/vstudio/vc14/zlibvc.def ~ compat/zlib/contrib/vstudio/vc9/zlib.rc ~ compat/zlib/contrib/vstudio/vc9/zlibvc.def ~ compat/zlib/deflate.c ~ compat/zlib/deflate.h ~ compat/zlib/examples/gzlog.c ~ compat/zlib/examples/zran.c ~ compat/zlib/gzguts.h ~ compat/zlib/gzlib.c ~ compat/zlib/inflate.c ~ compat/zlib/inftrees.c ~ compat/zlib/inftrees.h ~ compat/zlib/old/visual-basic.txt ~ compat/zlib/os400/README400 ~ compat/zlib/os400/zlib.inc ~ compat/zlib/qnx/package.qpg ~ compat/zlib/test/example.c ~ compat/zlib/test/minigzip.c ~ compat/zlib/treebuild.xml ~ compat/zlib/trees.c ~ compat/zlib/win32/DLL_FAQ.txt ~ compat/zlib/win32/README-WIN32.txt ~ compat/zlib/zconf.h ~ compat/zlib/zconf.h.cmakein ~ compat/zlib/zconf.h.in ~ compat/zlib/zlib.3 ~ compat/zlib/zlib.3.pdf ~ compat/zlib/zlib.h ~ compat/zlib/zlib.map ~ compat/zlib/zutil.h
--- compat/zlib/CMakeLists.txt
+++ compat/zlib/CMakeLists.txt
@@ -1,11 +1,13 @@
11
cmake_minimum_required(VERSION 2.4.4...3.15.0)
22
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
33
44
project(zlib C)
55
6
-set(VERSION "1.3")
6
+set(VERSION "1.3.1")
7
+
8
+option(ZLIB_BUILD_EXAMPLES "Enable Zlib Examples" ON)
79
810
set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
911
set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
1012
set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers")
1113
set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation directory for manual pages")
@@ -146,11 +148,13 @@
146148
-i ${CMAKE_CURRENT_SOURCE_DIR}/win32/zlib1.rc)
147149
set(ZLIB_DLL_SRCS ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj)
148150
endif(MINGW)
149151
150152
add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
153
+target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
151154
add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
155
+target_include_directories(zlibstatic PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
152156
set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
153157
set_target_properties(zlib PROPERTIES SOVERSION 1)
154158
155159
if(NOT CYGWIN)
156160
# This property causes shared libraries on Linux to have the full version
@@ -164,11 +168,11 @@
164168
endif()
165169
166170
if(UNIX)
167171
# On unix-like platforms the library is almost always called libz
168172
set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z)
169
- if(NOT APPLE)
173
+ if(NOT APPLE AND NOT(CMAKE_SYSTEM_NAME STREQUAL AIX))
170174
set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,\"${CMAKE_CURRENT_SOURCE_DIR}/zlib.map\"")
171175
endif()
172176
elseif(BUILD_SHARED_LIBS AND WIN32)
173177
# Creates zlib1.dll when building shared library version
174178
set_target_properties(zlib PROPERTIES SUFFIX "1.dll")
@@ -191,23 +195,24 @@
191195
endif()
192196
193197
#============================================================================
194198
# Example binaries
195199
#============================================================================
196
-
197
-add_executable(example test/example.c)
198
-target_link_libraries(example zlib)
199
-add_test(example example)
200
-
201
-add_executable(minigzip test/minigzip.c)
202
-target_link_libraries(minigzip zlib)
203
-
204
-if(HAVE_OFF64_T)
205
- add_executable(example64 test/example.c)
206
- target_link_libraries(example64 zlib)
207
- set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
208
- add_test(example64 example64)
209
-
210
- add_executable(minigzip64 test/minigzip.c)
211
- target_link_libraries(minigzip64 zlib)
212
- set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
200
+if(ZLIB_BUILD_EXAMPLES)
201
+ add_executable(example test/example.c)
202
+ target_link_libraries(example zlib)
203
+ add_test(example example)
204
+
205
+ add_executable(minigzip test/minigzip.c)
206
+ target_link_libraries(minigzip zlib)
207
+
208
+ if(HAVE_OFF64_T)
209
+ add_executable(example64 test/example.c)
210
+ target_link_libraries(example64 zlib)
211
+ set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
212
+ add_test(example64 example64)
213
+
214
+ add_executable(minigzip64 test/minigzip.c)
215
+ target_link_libraries(minigzip64 zlib)
216
+ set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
217
+ endif()
213218
endif()
214219
--- compat/zlib/CMakeLists.txt
+++ compat/zlib/CMakeLists.txt
@@ -1,11 +1,13 @@
1 cmake_minimum_required(VERSION 2.4.4...3.15.0)
2 set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
3
4 project(zlib C)
5
6 set(VERSION "1.3")
 
 
7
8 set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
9 set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
10 set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers")
11 set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation directory for manual pages")
@@ -146,11 +148,13 @@
146 -i ${CMAKE_CURRENT_SOURCE_DIR}/win32/zlib1.rc)
147 set(ZLIB_DLL_SRCS ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj)
148 endif(MINGW)
149
150 add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
 
151 add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
 
152 set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
153 set_target_properties(zlib PROPERTIES SOVERSION 1)
154
155 if(NOT CYGWIN)
156 # This property causes shared libraries on Linux to have the full version
@@ -164,11 +168,11 @@
164 endif()
165
166 if(UNIX)
167 # On unix-like platforms the library is almost always called libz
168 set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z)
169 if(NOT APPLE)
170 set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,\"${CMAKE_CURRENT_SOURCE_DIR}/zlib.map\"")
171 endif()
172 elseif(BUILD_SHARED_LIBS AND WIN32)
173 # Creates zlib1.dll when building shared library version
174 set_target_properties(zlib PROPERTIES SUFFIX "1.dll")
@@ -191,23 +195,24 @@
191 endif()
192
193 #============================================================================
194 # Example binaries
195 #============================================================================
196
197 add_executable(example test/example.c)
198 target_link_libraries(example zlib)
199 add_test(example example)
200
201 add_executable(minigzip test/minigzip.c)
202 target_link_libraries(minigzip zlib)
203
204 if(HAVE_OFF64_T)
205 add_executable(example64 test/example.c)
206 target_link_libraries(example64 zlib)
207 set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
208 add_test(example64 example64)
209
210 add_executable(minigzip64 test/minigzip.c)
211 target_link_libraries(minigzip64 zlib)
212 set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
 
213 endif()
214
--- compat/zlib/CMakeLists.txt
+++ compat/zlib/CMakeLists.txt
@@ -1,11 +1,13 @@
1 cmake_minimum_required(VERSION 2.4.4...3.15.0)
2 set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
3
4 project(zlib C)
5
6 set(VERSION "1.3.1")
7
8 option(ZLIB_BUILD_EXAMPLES "Enable Zlib Examples" ON)
9
10 set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
11 set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
12 set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers")
13 set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation directory for manual pages")
@@ -146,11 +148,13 @@
148 -i ${CMAKE_CURRENT_SOURCE_DIR}/win32/zlib1.rc)
149 set(ZLIB_DLL_SRCS ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj)
150 endif(MINGW)
151
152 add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
153 target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
154 add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
155 target_include_directories(zlibstatic PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
156 set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
157 set_target_properties(zlib PROPERTIES SOVERSION 1)
158
159 if(NOT CYGWIN)
160 # This property causes shared libraries on Linux to have the full version
@@ -164,11 +168,11 @@
168 endif()
169
170 if(UNIX)
171 # On unix-like platforms the library is almost always called libz
172 set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z)
173 if(NOT APPLE AND NOT(CMAKE_SYSTEM_NAME STREQUAL AIX))
174 set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,\"${CMAKE_CURRENT_SOURCE_DIR}/zlib.map\"")
175 endif()
176 elseif(BUILD_SHARED_LIBS AND WIN32)
177 # Creates zlib1.dll when building shared library version
178 set_target_properties(zlib PROPERTIES SUFFIX "1.dll")
@@ -191,23 +195,24 @@
195 endif()
196
197 #============================================================================
198 # Example binaries
199 #============================================================================
200 if(ZLIB_BUILD_EXAMPLES)
201 add_executable(example test/example.c)
202 target_link_libraries(example zlib)
203 add_test(example example)
204
205 add_executable(minigzip test/minigzip.c)
206 target_link_libraries(minigzip zlib)
207
208 if(HAVE_OFF64_T)
209 add_executable(example64 test/example.c)
210 target_link_libraries(example64 zlib)
211 set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
212 add_test(example64 example64)
213
214 add_executable(minigzip64 test/minigzip.c)
215 target_link_libraries(minigzip64 zlib)
216 set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
217 endif()
218 endif()
219
--- compat/zlib/ChangeLog
+++ compat/zlib/ChangeLog
@@ -1,8 +1,18 @@
11
22
ChangeLog file for zlib
33
4
+Changes in 1.3.1 (22 Jan 2024)
5
+- Reject overflows of zip header fields in minizip
6
+- Fix bug in inflateSync() for data held in bit buffer
7
+- Add LIT_MEM define to use more memory for a small deflate speedup
8
+- Fix decision on the emission of Zip64 end records in minizip
9
+- Add bounds checking to ERR_MSG() macro, used by zError()
10
+- Neutralize zip file traversal attacks in miniunz
11
+- Fix a bug in ZLIB_DEBUG compiles in check_match()
12
+- Various portability and appearance improvements
13
+
414
Changes in 1.3 (18 Aug 2023)
515
- Remove K&R function definitions and zlib2ansi
616
- Fix bug in deflateBound() for level 0 and memLevel 9
717
- Fix bug when gzungetc() is used immediately after gzopen()
818
- Fix bug when using gzflush() with a very small buffer
919
--- compat/zlib/ChangeLog
+++ compat/zlib/ChangeLog
@@ -1,8 +1,18 @@
1
2 ChangeLog file for zlib
3
 
 
 
 
 
 
 
 
 
 
4 Changes in 1.3 (18 Aug 2023)
5 - Remove K&R function definitions and zlib2ansi
6 - Fix bug in deflateBound() for level 0 and memLevel 9
7 - Fix bug when gzungetc() is used immediately after gzopen()
8 - Fix bug when using gzflush() with a very small buffer
9
--- compat/zlib/ChangeLog
+++ compat/zlib/ChangeLog
@@ -1,8 +1,18 @@
1
2 ChangeLog file for zlib
3
4 Changes in 1.3.1 (22 Jan 2024)
5 - Reject overflows of zip header fields in minizip
6 - Fix bug in inflateSync() for data held in bit buffer
7 - Add LIT_MEM define to use more memory for a small deflate speedup
8 - Fix decision on the emission of Zip64 end records in minizip
9 - Add bounds checking to ERR_MSG() macro, used by zError()
10 - Neutralize zip file traversal attacks in miniunz
11 - Fix a bug in ZLIB_DEBUG compiles in check_match()
12 - Various portability and appearance improvements
13
14 Changes in 1.3 (18 Aug 2023)
15 - Remove K&R function definitions and zlib2ansi
16 - Fix bug in deflateBound() for level 0 and memLevel 9
17 - Fix bug when gzungetc() is used immediately after gzopen()
18 - Fix bug when using gzflush() with a very small buffer
19
+1 -2
--- compat/zlib/FAQ
+++ compat/zlib/FAQ
@@ -12,12 +12,11 @@
1212
Yes. zlib doesn't handle dates.
1313
1414
2. Where can I get a Windows DLL version?
1515
1616
The zlib sources can be compiled without change to produce a DLL. See the
17
- file win32/DLL_FAQ.txt in the zlib distribution. Pointers to the
18
- precompiled DLL are found in the zlib web site at http://zlib.net/ .
17
+ file win32/DLL_FAQ.txt in the zlib distribution.
1918
2019
3. Where can I get a Visual Basic interface to zlib?
2120
2221
See
2322
* http://marknelson.us/1997/01/01/zlib-engine/
2423
--- compat/zlib/FAQ
+++ compat/zlib/FAQ
@@ -12,12 +12,11 @@
12 Yes. zlib doesn't handle dates.
13
14 2. Where can I get a Windows DLL version?
15
16 The zlib sources can be compiled without change to produce a DLL. See the
17 file win32/DLL_FAQ.txt in the zlib distribution. Pointers to the
18 precompiled DLL are found in the zlib web site at http://zlib.net/ .
19
20 3. Where can I get a Visual Basic interface to zlib?
21
22 See
23 * http://marknelson.us/1997/01/01/zlib-engine/
24
--- compat/zlib/FAQ
+++ compat/zlib/FAQ
@@ -12,12 +12,11 @@
12 Yes. zlib doesn't handle dates.
13
14 2. Where can I get a Windows DLL version?
15
16 The zlib sources can be compiled without change to produce a DLL. See the
17 file win32/DLL_FAQ.txt in the zlib distribution.
 
18
19 3. Where can I get a Visual Basic interface to zlib?
20
21 See
22 * http://marknelson.us/1997/01/01/zlib-engine/
23
--- compat/zlib/Makefile.in
+++ compat/zlib/Makefile.in
@@ -1,7 +1,7 @@
11
# Makefile for zlib
2
-# Copyright (C) 1995-2017 Jean-loup Gailly, Mark Adler
2
+# Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
33
# For conditions of distribution and use, see copyright notice in zlib.h
44
55
# To compile and test, type:
66
# ./configure; make test
77
# Normally configure builds both a static and a shared library.
@@ -20,17 +20,17 @@
2020
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
2121
# -Wstrict-prototypes -Wmissing-prototypes
2222
2323
SFLAGS=-O
2424
LDFLAGS=
25
-TEST_LDFLAGS=$(LDFLAGS) -L. libz.a
25
+TEST_LIBS=-L. libz.a
2626
LDSHARED=$(CC)
2727
CPP=$(CC) -E
2828
2929
STATICLIB=libz.a
3030
SHAREDLIB=libz.so
31
-SHAREDLIBV=libz.so.1.3
31
+SHAREDLIBV=libz.so.1.3.1
3232
SHAREDLIBM=libz.so.1
3333
LIBS=$(STATICLIB) $(SHAREDLIBV)
3434
3535
AR=ar
3636
ARFLAGS=rc
@@ -280,26 +280,26 @@
280280
ln -s $@ $(SHAREDLIB)
281281
ln -s $@ $(SHAREDLIBM)
282282
-@rmdir objs
283283
284284
example$(EXE): example.o $(STATICLIB)
285
- $(CC) $(CFLAGS) -o $@ example.o $(TEST_LDFLAGS)
285
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ example.o $(TEST_LIBS)
286286
287287
minigzip$(EXE): minigzip.o $(STATICLIB)
288
- $(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
288
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ minigzip.o $(TEST_LIBS)
289289
290290
examplesh$(EXE): example.o $(SHAREDLIBV)
291291
$(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) -L. $(SHAREDLIBV)
292292
293293
minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
294294
$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) -L. $(SHAREDLIBV)
295295
296296
example64$(EXE): example64.o $(STATICLIB)
297
- $(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS)
297
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ example64.o $(TEST_LIBS)
298298
299299
minigzip64$(EXE): minigzip64.o $(STATICLIB)
300
- $(CC) $(CFLAGS) -o $@ minigzip64.o $(TEST_LDFLAGS)
300
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ minigzip64.o $(TEST_LIBS)
301301
302302
install-libs: $(LIBS)
303303
-@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
304304
-@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi
305305
-@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi
@@ -358,11 +358,11 @@
358358
359359
zconf: $(SRCDIR)zconf.h.in
360360
cp -p $(SRCDIR)zconf.h.in zconf.h
361361
362362
minizip-test: static
363
- cd contrib/minizip && { CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; }
363
+ cd contrib/minizip && { CC="$(CC)" CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; }
364364
365365
minizip-clean:
366366
cd contrib/minizip && { $(MAKE) clean ; cd ../.. ; }
367367
368368
mostlyclean: clean
369369
--- compat/zlib/Makefile.in
+++ compat/zlib/Makefile.in
@@ -1,7 +1,7 @@
1 # Makefile for zlib
2 # Copyright (C) 1995-2017 Jean-loup Gailly, Mark Adler
3 # For conditions of distribution and use, see copyright notice in zlib.h
4
5 # To compile and test, type:
6 # ./configure; make test
7 # Normally configure builds both a static and a shared library.
@@ -20,17 +20,17 @@
20 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
21 # -Wstrict-prototypes -Wmissing-prototypes
22
23 SFLAGS=-O
24 LDFLAGS=
25 TEST_LDFLAGS=$(LDFLAGS) -L. libz.a
26 LDSHARED=$(CC)
27 CPP=$(CC) -E
28
29 STATICLIB=libz.a
30 SHAREDLIB=libz.so
31 SHAREDLIBV=libz.so.1.3
32 SHAREDLIBM=libz.so.1
33 LIBS=$(STATICLIB) $(SHAREDLIBV)
34
35 AR=ar
36 ARFLAGS=rc
@@ -280,26 +280,26 @@
280 ln -s $@ $(SHAREDLIB)
281 ln -s $@ $(SHAREDLIBM)
282 -@rmdir objs
283
284 example$(EXE): example.o $(STATICLIB)
285 $(CC) $(CFLAGS) -o $@ example.o $(TEST_LDFLAGS)
286
287 minigzip$(EXE): minigzip.o $(STATICLIB)
288 $(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
289
290 examplesh$(EXE): example.o $(SHAREDLIBV)
291 $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) -L. $(SHAREDLIBV)
292
293 minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
294 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) -L. $(SHAREDLIBV)
295
296 example64$(EXE): example64.o $(STATICLIB)
297 $(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS)
298
299 minigzip64$(EXE): minigzip64.o $(STATICLIB)
300 $(CC) $(CFLAGS) -o $@ minigzip64.o $(TEST_LDFLAGS)
301
302 install-libs: $(LIBS)
303 -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
304 -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi
305 -@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi
@@ -358,11 +358,11 @@
358
359 zconf: $(SRCDIR)zconf.h.in
360 cp -p $(SRCDIR)zconf.h.in zconf.h
361
362 minizip-test: static
363 cd contrib/minizip && { CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; }
364
365 minizip-clean:
366 cd contrib/minizip && { $(MAKE) clean ; cd ../.. ; }
367
368 mostlyclean: clean
369
--- compat/zlib/Makefile.in
+++ compat/zlib/Makefile.in
@@ -1,7 +1,7 @@
1 # Makefile for zlib
2 # Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
3 # For conditions of distribution and use, see copyright notice in zlib.h
4
5 # To compile and test, type:
6 # ./configure; make test
7 # Normally configure builds both a static and a shared library.
@@ -20,17 +20,17 @@
20 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
21 # -Wstrict-prototypes -Wmissing-prototypes
22
23 SFLAGS=-O
24 LDFLAGS=
25 TEST_LIBS=-L. libz.a
26 LDSHARED=$(CC)
27 CPP=$(CC) -E
28
29 STATICLIB=libz.a
30 SHAREDLIB=libz.so
31 SHAREDLIBV=libz.so.1.3.1
32 SHAREDLIBM=libz.so.1
33 LIBS=$(STATICLIB) $(SHAREDLIBV)
34
35 AR=ar
36 ARFLAGS=rc
@@ -280,26 +280,26 @@
280 ln -s $@ $(SHAREDLIB)
281 ln -s $@ $(SHAREDLIBM)
282 -@rmdir objs
283
284 example$(EXE): example.o $(STATICLIB)
285 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ example.o $(TEST_LIBS)
286
287 minigzip$(EXE): minigzip.o $(STATICLIB)
288 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ minigzip.o $(TEST_LIBS)
289
290 examplesh$(EXE): example.o $(SHAREDLIBV)
291 $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) -L. $(SHAREDLIBV)
292
293 minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
294 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) -L. $(SHAREDLIBV)
295
296 example64$(EXE): example64.o $(STATICLIB)
297 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ example64.o $(TEST_LIBS)
298
299 minigzip64$(EXE): minigzip64.o $(STATICLIB)
300 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ minigzip64.o $(TEST_LIBS)
301
302 install-libs: $(LIBS)
303 -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
304 -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi
305 -@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi
@@ -358,11 +358,11 @@
358
359 zconf: $(SRCDIR)zconf.h.in
360 cp -p $(SRCDIR)zconf.h.in zconf.h
361
362 minizip-test: static
363 cd contrib/minizip && { CC="$(CC)" CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; }
364
365 minizip-clean:
366 cd contrib/minizip && { $(MAKE) clean ; cd ../.. ; }
367
368 mostlyclean: clean
369
--- compat/zlib/README
+++ compat/zlib/README
@@ -1,8 +1,8 @@
11
ZLIB DATA COMPRESSION LIBRARY
22
3
-zlib 1.3 is a general purpose data compression library. All the code is
3
+zlib 1.3.1 is a general purpose data compression library. All the code is
44
thread safe. The data format used by the zlib library is described by RFCs
55
(Request for Comments) 1950 to 1952 in the files
66
http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and
77
rfc1952 (gzip format).
88
@@ -29,11 +29,11 @@
2929
3030
Mark Nelson <[email protected]> wrote an article about zlib for the Jan. 1997
3131
issue of Dr. Dobb's Journal; a copy of the article is available at
3232
https://marknelson.us/posts/1997/01/01/zlib-engine.html .
3333
34
-The changes made in version 1.3 are documented in the file ChangeLog.
34
+The changes made in version 1.3.1 are documented in the file ChangeLog.
3535
3636
Unsupported third party contributions are provided in directory contrib/ .
3737
3838
zlib is available in Java using the java.util.zip package. Follow the API
3939
Documentation link at: https://docs.oracle.com/search/?q=java.util.zip .
@@ -81,11 +81,11 @@
8181
people who reported problems and suggested various improvements in zlib; they
8282
are too numerous to cite here.
8383
8484
Copyright notice:
8585
86
- (C) 1995-2023 Jean-loup Gailly and Mark Adler
86
+ (C) 1995-2024 Jean-loup Gailly and Mark Adler
8787
8888
This software is provided 'as-is', without any express or implied
8989
warranty. In no event will the authors be held liable for any damages
9090
arising from the use of this software.
9191
9292
--- compat/zlib/README
+++ compat/zlib/README
@@ -1,8 +1,8 @@
1 ZLIB DATA COMPRESSION LIBRARY
2
3 zlib 1.3 is a general purpose data compression library. All the code is
4 thread safe. The data format used by the zlib library is described by RFCs
5 (Request for Comments) 1950 to 1952 in the files
6 http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and
7 rfc1952 (gzip format).
8
@@ -29,11 +29,11 @@
29
30 Mark Nelson <[email protected]> wrote an article about zlib for the Jan. 1997
31 issue of Dr. Dobb's Journal; a copy of the article is available at
32 https://marknelson.us/posts/1997/01/01/zlib-engine.html .
33
34 The changes made in version 1.3 are documented in the file ChangeLog.
35
36 Unsupported third party contributions are provided in directory contrib/ .
37
38 zlib is available in Java using the java.util.zip package. Follow the API
39 Documentation link at: https://docs.oracle.com/search/?q=java.util.zip .
@@ -81,11 +81,11 @@
81 people who reported problems and suggested various improvements in zlib; they
82 are too numerous to cite here.
83
84 Copyright notice:
85
86 (C) 1995-2023 Jean-loup Gailly and Mark Adler
87
88 This software is provided 'as-is', without any express or implied
89 warranty. In no event will the authors be held liable for any damages
90 arising from the use of this software.
91
92
--- compat/zlib/README
+++ compat/zlib/README
@@ -1,8 +1,8 @@
1 ZLIB DATA COMPRESSION LIBRARY
2
3 zlib 1.3.1 is a general purpose data compression library. All the code is
4 thread safe. The data format used by the zlib library is described by RFCs
5 (Request for Comments) 1950 to 1952 in the files
6 http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and
7 rfc1952 (gzip format).
8
@@ -29,11 +29,11 @@
29
30 Mark Nelson <[email protected]> wrote an article about zlib for the Jan. 1997
31 issue of Dr. Dobb's Journal; a copy of the article is available at
32 https://marknelson.us/posts/1997/01/01/zlib-engine.html .
33
34 The changes made in version 1.3.1 are documented in the file ChangeLog.
35
36 Unsupported third party contributions are provided in directory contrib/ .
37
38 zlib is available in Java using the java.util.zip package. Follow the API
39 Documentation link at: https://docs.oracle.com/search/?q=java.util.zip .
@@ -81,11 +81,11 @@
81 people who reported problems and suggested various improvements in zlib; they
82 are too numerous to cite here.
83
84 Copyright notice:
85
86 (C) 1995-2024 Jean-loup Gailly and Mark Adler
87
88 This software is provided 'as-is', without any express or implied
89 warranty. In no event will the authors be held liable for any damages
90 arising from the use of this software.
91
92
--- compat/zlib/configure
+++ compat/zlib/configure
@@ -23,11 +23,11 @@
2323
if test $SRCDIR = "."; then
2424
ZINC=""
2525
ZINCOUT="-I."
2626
SRCDIR=""
2727
else
28
- ZINC='-include zconf.h'
28
+ ZINC='-I. -include zconf.h'
2929
ZINCOUT='-I. -I$(SRCDIR)'
3030
SRCDIR="$SRCDIR/"
3131
fi
3232
3333
# set command prefix for cross-compilation
@@ -42,11 +42,12 @@
4242
# destination name for static library
4343
STATICLIB=libz.a
4444
4545
# extract zlib version numbers from zlib.h
4646
VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < ${SRCDIR}zlib.h`
47
-VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < ${SRCDIR}zlib.h`
47
+VER3=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\(\\.[0-9]\{1,\}\)\{1,2\}\).*/\1/p'`
48
+VER1=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\)\\..*/\1/p'`
4849
4950
# establish commands for library building
5051
if "${CROSS_PREFIX}ar" --version >/dev/null 2>/dev/null || test $? -lt 126; then
5152
AR=${AR-"${CROSS_PREFIX}ar"}
5253
test -n "${CROSS_PREFIX}" && echo Using ${AR} | tee -a configure.log
@@ -261,11 +262,11 @@
261262
Darwin* | darwin* | *-darwin*)
262263
shared_ext='.dylib'
263264
SHAREDLIB=libz$shared_ext
264265
SHAREDLIBV=libz.$VER$shared_ext
265266
SHAREDLIBM=libz.$VER1$shared_ext
266
- LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER"}
267
+ LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"}
267268
if "${CROSS_PREFIX}libtool" -V 2>&1 | grep Apple > /dev/null; then
268269
AR="${CROSS_PREFIX}libtool"
269270
elif libtool -V 2>&1 | grep Apple > /dev/null; then
270271
AR="libtool"
271272
else
@@ -439,11 +440,11 @@
439440
int hello() {return getchar();}
440441
EOF
441442
if test $shared -eq 1; then
442443
echo Checking for shared library support... | tee -a configure.log
443444
# we must test in two steps (cc then ld), required at least on SunOS 4.x
444
- if try $CC -w -c $SFLAGS $test.c &&
445
+ if try $CC -c $SFLAGS $test.c &&
445446
try $LDSHARED $SFLAGS -o $test$shared_ext $test.o; then
446447
echo Building shared library $SHAREDLIBV with $CC. | tee -a configure.log
447448
elif test -z "$old_cc" -a -z "$old_cflags"; then
448449
echo No shared library support. | tee -a configure.log
449450
shared=0;
450451
--- compat/zlib/configure
+++ compat/zlib/configure
@@ -23,11 +23,11 @@
23 if test $SRCDIR = "."; then
24 ZINC=""
25 ZINCOUT="-I."
26 SRCDIR=""
27 else
28 ZINC='-include zconf.h'
29 ZINCOUT='-I. -I$(SRCDIR)'
30 SRCDIR="$SRCDIR/"
31 fi
32
33 # set command prefix for cross-compilation
@@ -42,11 +42,12 @@
42 # destination name for static library
43 STATICLIB=libz.a
44
45 # extract zlib version numbers from zlib.h
46 VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < ${SRCDIR}zlib.h`
47 VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < ${SRCDIR}zlib.h`
 
48
49 # establish commands for library building
50 if "${CROSS_PREFIX}ar" --version >/dev/null 2>/dev/null || test $? -lt 126; then
51 AR=${AR-"${CROSS_PREFIX}ar"}
52 test -n "${CROSS_PREFIX}" && echo Using ${AR} | tee -a configure.log
@@ -261,11 +262,11 @@
261 Darwin* | darwin* | *-darwin*)
262 shared_ext='.dylib'
263 SHAREDLIB=libz$shared_ext
264 SHAREDLIBV=libz.$VER$shared_ext
265 SHAREDLIBM=libz.$VER1$shared_ext
266 LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER"}
267 if "${CROSS_PREFIX}libtool" -V 2>&1 | grep Apple > /dev/null; then
268 AR="${CROSS_PREFIX}libtool"
269 elif libtool -V 2>&1 | grep Apple > /dev/null; then
270 AR="libtool"
271 else
@@ -439,11 +440,11 @@
439 int hello() {return getchar();}
440 EOF
441 if test $shared -eq 1; then
442 echo Checking for shared library support... | tee -a configure.log
443 # we must test in two steps (cc then ld), required at least on SunOS 4.x
444 if try $CC -w -c $SFLAGS $test.c &&
445 try $LDSHARED $SFLAGS -o $test$shared_ext $test.o; then
446 echo Building shared library $SHAREDLIBV with $CC. | tee -a configure.log
447 elif test -z "$old_cc" -a -z "$old_cflags"; then
448 echo No shared library support. | tee -a configure.log
449 shared=0;
450
--- compat/zlib/configure
+++ compat/zlib/configure
@@ -23,11 +23,11 @@
23 if test $SRCDIR = "."; then
24 ZINC=""
25 ZINCOUT="-I."
26 SRCDIR=""
27 else
28 ZINC='-I. -include zconf.h'
29 ZINCOUT='-I. -I$(SRCDIR)'
30 SRCDIR="$SRCDIR/"
31 fi
32
33 # set command prefix for cross-compilation
@@ -42,11 +42,12 @@
42 # destination name for static library
43 STATICLIB=libz.a
44
45 # extract zlib version numbers from zlib.h
46 VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < ${SRCDIR}zlib.h`
47 VER3=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\(\\.[0-9]\{1,\}\)\{1,2\}\).*/\1/p'`
48 VER1=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\)\\..*/\1/p'`
49
50 # establish commands for library building
51 if "${CROSS_PREFIX}ar" --version >/dev/null 2>/dev/null || test $? -lt 126; then
52 AR=${AR-"${CROSS_PREFIX}ar"}
53 test -n "${CROSS_PREFIX}" && echo Using ${AR} | tee -a configure.log
@@ -261,11 +262,11 @@
262 Darwin* | darwin* | *-darwin*)
263 shared_ext='.dylib'
264 SHAREDLIB=libz$shared_ext
265 SHAREDLIBV=libz.$VER$shared_ext
266 SHAREDLIBM=libz.$VER1$shared_ext
267 LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"}
268 if "${CROSS_PREFIX}libtool" -V 2>&1 | grep Apple > /dev/null; then
269 AR="${CROSS_PREFIX}libtool"
270 elif libtool -V 2>&1 | grep Apple > /dev/null; then
271 AR="libtool"
272 else
@@ -439,11 +440,11 @@
440 int hello() {return getchar();}
441 EOF
442 if test $shared -eq 1; then
443 echo Checking for shared library support... | tee -a configure.log
444 # we must test in two steps (cc then ld), required at least on SunOS 4.x
445 if try $CC -c $SFLAGS $test.c &&
446 try $LDSHARED $SFLAGS -o $test$shared_ext $test.o; then
447 echo Building shared library $SHAREDLIBV with $CC. | tee -a configure.log
448 elif test -z "$old_cc" -a -z "$old_cflags"; then
449 echo No shared library support. | tee -a configure.log
450 shared=0;
451
--- compat/zlib/contrib/delphi/ZLib.pas
+++ compat/zlib/contrib/delphi/ZLib.pas
@@ -150,11 +150,11 @@
150150
BufSize = number of bytes in OutBuf }
151151
procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer;
152152
const OutBuf: Pointer; BufSize: Integer);
153153
154154
const
155
- zlib_version = '1.3.0';
155
+ zlib_version = '1.3.1';
156156
157157
type
158158
EZlibError = class(Exception);
159159
ECompressionError = class(EZlibError);
160160
EDecompressionError = class(EZlibError);
161161
--- compat/zlib/contrib/delphi/ZLib.pas
+++ compat/zlib/contrib/delphi/ZLib.pas
@@ -150,11 +150,11 @@
150 BufSize = number of bytes in OutBuf }
151 procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer;
152 const OutBuf: Pointer; BufSize: Integer);
153
154 const
155 zlib_version = '1.3.0';
156
157 type
158 EZlibError = class(Exception);
159 ECompressionError = class(EZlibError);
160 EDecompressionError = class(EZlibError);
161
--- compat/zlib/contrib/delphi/ZLib.pas
+++ compat/zlib/contrib/delphi/ZLib.pas
@@ -150,11 +150,11 @@
150 BufSize = number of bytes in OutBuf }
151 procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer;
152 const OutBuf: Pointer; BufSize: Integer);
153
154 const
155 zlib_version = '1.3.1';
156
157 type
158 EZlibError = class(Exception);
159 ECompressionError = class(EZlibError);
160 EDecompressionError = class(EZlibError);
161
--- compat/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
+++ compat/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
@@ -32,11 +32,11 @@
3232
{
3333
_current = 0;
3434
}
3535
3636
/// <summary>
37
- /// Initializes a new instance of the checksum generator basewith a specified value
37
+ /// Initializes a new instance of the checksum generator base with a specified value
3838
/// </summary>
3939
/// <param name="initialValue">The value to set the current checksum to</param>
4040
public ChecksumGeneratorBase(uint initialValue)
4141
{
4242
_current = initialValue;
4343
--- compat/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
+++ compat/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
@@ -32,11 +32,11 @@
32 {
33 _current = 0;
34 }
35
36 /// <summary>
37 /// Initializes a new instance of the checksum generator basewith a specified value
38 /// </summary>
39 /// <param name="initialValue">The value to set the current checksum to</param>
40 public ChecksumGeneratorBase(uint initialValue)
41 {
42 _current = initialValue;
43
--- compat/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
+++ compat/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
@@ -32,11 +32,11 @@
32 {
33 _current = 0;
34 }
35
36 /// <summary>
37 /// Initializes a new instance of the checksum generator base with a specified value
38 /// </summary>
39 /// <param name="initialValue">The value to set the current checksum to</param>
40 public ChecksumGeneratorBase(uint initialValue)
41 {
42 _current = initialValue;
43
--- compat/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
+++ compat/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
@@ -154,11 +154,11 @@
154154
#region Info tests
155155
[Test]
156156
public void Info_Version()
157157
{
158158
Info info = new Info();
159
- Assert.AreEqual("1.3.0", Info.Version);
159
+ Assert.AreEqual("1.3.1", Info.Version);
160160
Assert.AreEqual(32, info.SizeOfUInt);
161161
Assert.AreEqual(32, info.SizeOfULong);
162162
Assert.AreEqual(32, info.SizeOfPointer);
163163
Assert.AreEqual(32, info.SizeOfOffset);
164164
}
165165
--- compat/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
+++ compat/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
@@ -154,11 +154,11 @@
154 #region Info tests
155 [Test]
156 public void Info_Version()
157 {
158 Info info = new Info();
159 Assert.AreEqual("1.3.0", Info.Version);
160 Assert.AreEqual(32, info.SizeOfUInt);
161 Assert.AreEqual(32, info.SizeOfULong);
162 Assert.AreEqual(32, info.SizeOfPointer);
163 Assert.AreEqual(32, info.SizeOfOffset);
164 }
165
--- compat/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
+++ compat/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
@@ -154,11 +154,11 @@
154 #region Info tests
155 [Test]
156 public void Info_Version()
157 {
158 Info info = new Info();
159 Assert.AreEqual("1.3.1", Info.Version);
160 Assert.AreEqual(32, info.SizeOfUInt);
161 Assert.AreEqual(32, info.SizeOfULong);
162 Assert.AreEqual(32, info.SizeOfPointer);
163 Assert.AreEqual(32, info.SizeOfOffset);
164 }
165
--- compat/zlib/contrib/infback9/inftree9.c
+++ compat/zlib/contrib/infback9/inftree9.c
@@ -1,17 +1,17 @@
11
/* inftree9.c -- generate Huffman trees for efficient decoding
2
- * Copyright (C) 1995-2023 Mark Adler
2
+ * Copyright (C) 1995-2024 Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
#include "zutil.h"
77
#include "inftree9.h"
88
99
#define MAXBITS 15
1010
1111
const char inflate9_copyright[] =
12
- " inflate9 1.3 Copyright 1995-2023 Mark Adler ";
12
+ " inflate9 1.3.1 Copyright 1995-2024 Mark Adler ";
1313
/*
1414
If you use the zlib library in a product, an acknowledgment is welcome
1515
in the documentation of your product. If for some reason you cannot
1616
include such an acknowledgment, I would appreciate that you keep this
1717
copyright string in the executable of your product.
@@ -57,11 +57,11 @@
5757
19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115,
5858
131, 163, 195, 227, 3, 0, 0};
5959
static const unsigned short lext[31] = { /* Length codes 257..285 extra */
6060
128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129,
6161
130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132,
62
- 133, 133, 133, 133, 144, 198, 203};
62
+ 133, 133, 133, 133, 144, 203, 77};
6363
static const unsigned short dbase[32] = { /* Distance codes 0..31 base */
6464
1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,
6565
65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073,
6666
4097, 6145, 8193, 12289, 16385, 24577, 32769, 49153};
6767
static const unsigned short dext[32] = { /* Distance codes 0..31 extra */
6868
--- compat/zlib/contrib/infback9/inftree9.c
+++ compat/zlib/contrib/infback9/inftree9.c
@@ -1,17 +1,17 @@
1 /* inftree9.c -- generate Huffman trees for efficient decoding
2 * Copyright (C) 1995-2023 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #include "zutil.h"
7 #include "inftree9.h"
8
9 #define MAXBITS 15
10
11 const char inflate9_copyright[] =
12 " inflate9 1.3 Copyright 1995-2023 Mark Adler ";
13 /*
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
16 include such an acknowledgment, I would appreciate that you keep this
17 copyright string in the executable of your product.
@@ -57,11 +57,11 @@
57 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115,
58 131, 163, 195, 227, 3, 0, 0};
59 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
60 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129,
61 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132,
62 133, 133, 133, 133, 144, 198, 203};
63 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */
64 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,
65 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073,
66 4097, 6145, 8193, 12289, 16385, 24577, 32769, 49153};
67 static const unsigned short dext[32] = { /* Distance codes 0..31 extra */
68
--- compat/zlib/contrib/infback9/inftree9.c
+++ compat/zlib/contrib/infback9/inftree9.c
@@ -1,17 +1,17 @@
1 /* inftree9.c -- generate Huffman trees for efficient decoding
2 * Copyright (C) 1995-2024 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #include "zutil.h"
7 #include "inftree9.h"
8
9 #define MAXBITS 15
10
11 const char inflate9_copyright[] =
12 " inflate9 1.3.1 Copyright 1995-2024 Mark Adler ";
13 /*
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
16 include such an acknowledgment, I would appreciate that you keep this
17 copyright string in the executable of your product.
@@ -57,11 +57,11 @@
57 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115,
58 131, 163, 195, 227, 3, 0, 0};
59 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
60 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129,
61 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132,
62 133, 133, 133, 133, 144, 203, 77};
63 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */
64 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,
65 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073,
66 4097, 6145, 8193, 12289, 16385, 24577, 32769, 49153};
67 static const unsigned short dext[32] = { /* Distance codes 0..31 extra */
68
--- compat/zlib/contrib/infback9/inftree9.h
+++ compat/zlib/contrib/infback9/inftree9.h
@@ -39,12 +39,12 @@
3939
1446, which is the sum of 852 for literal/length codes and 594 for distance
4040
codes. These values were found by exhaustive searches using the program
4141
examples/enough.c found in the zlib distribution. The arguments to that
4242
program are the number of symbols, the initial root table size, and the
4343
maximum bit length of a code. "enough 286 9 15" for literal/length codes
44
- returns returns 852, and "enough 32 6 15" for distance codes returns 594.
45
- The initial root table size (9 or 6) is found in the fifth argument of the
44
+ returns 852, and "enough 32 6 15" for distance codes returns 594. The
45
+ initial root table size (9 or 6) is found in the fifth argument of the
4646
inflate_table() calls in infback9.c. If the root table size is changed,
4747
then these maximum sizes would be need to be recalculated and updated. */
4848
#define ENOUGH_LENS 852
4949
#define ENOUGH_DISTS 594
5050
#define ENOUGH (ENOUGH_LENS+ENOUGH_DISTS)
5151
--- compat/zlib/contrib/infback9/inftree9.h
+++ compat/zlib/contrib/infback9/inftree9.h
@@ -39,12 +39,12 @@
39 1446, which is the sum of 852 for literal/length codes and 594 for distance
40 codes. These values were found by exhaustive searches using the program
41 examples/enough.c found in the zlib distribution. The arguments to that
42 program are the number of symbols, the initial root table size, and the
43 maximum bit length of a code. "enough 286 9 15" for literal/length codes
44 returns returns 852, and "enough 32 6 15" for distance codes returns 594.
45 The initial root table size (9 or 6) is found in the fifth argument of the
46 inflate_table() calls in infback9.c. If the root table size is changed,
47 then these maximum sizes would be need to be recalculated and updated. */
48 #define ENOUGH_LENS 852
49 #define ENOUGH_DISTS 594
50 #define ENOUGH (ENOUGH_LENS+ENOUGH_DISTS)
51
--- compat/zlib/contrib/infback9/inftree9.h
+++ compat/zlib/contrib/infback9/inftree9.h
@@ -39,12 +39,12 @@
39 1446, which is the sum of 852 for literal/length codes and 594 for distance
40 codes. These values were found by exhaustive searches using the program
41 examples/enough.c found in the zlib distribution. The arguments to that
42 program are the number of symbols, the initial root table size, and the
43 maximum bit length of a code. "enough 286 9 15" for literal/length codes
44 returns 852, and "enough 32 6 15" for distance codes returns 594. The
45 initial root table size (9 or 6) is found in the fifth argument of the
46 inflate_table() calls in infback9.c. If the root table size is changed,
47 then these maximum sizes would be need to be recalculated and updated. */
48 #define ENOUGH_LENS 852
49 #define ENOUGH_DISTS 594
50 #define ENOUGH (ENOUGH_LENS+ENOUGH_DISTS)
51
--- compat/zlib/contrib/iostream3/zfstream.h
+++ compat/zlib/contrib/iostream3/zfstream.h
@@ -411,11 +411,11 @@
411411
*/
412412
template<typename T1, typename T2>
413413
class gzomanip2
414414
{
415415
public:
416
- // Allows insertor to peek at internals
416
+ // Allows inserter to peek at internals
417417
template <typename Ta, typename Tb>
418418
friend gzofstream&
419419
operator<<(gzofstream&,
420420
const gzomanip2<Ta,Tb>&);
421421
@@ -450,11 +450,11 @@
450450
T1 v1,
451451
T2 v2)
452452
: func(f), val1(v1), val2(v2)
453453
{ }
454454
455
-// Insertor applies underlying manipulator function to stream
455
+// Inserter applies underlying manipulator function to stream
456456
template<typename T1, typename T2>
457457
inline gzofstream&
458458
operator<<(gzofstream& s, const gzomanip2<T1,T2>& m)
459459
{ return (*m.func)(s, m.val1, m.val2); }
460460
461461
--- compat/zlib/contrib/iostream3/zfstream.h
+++ compat/zlib/contrib/iostream3/zfstream.h
@@ -411,11 +411,11 @@
411 */
412 template<typename T1, typename T2>
413 class gzomanip2
414 {
415 public:
416 // Allows insertor to peek at internals
417 template <typename Ta, typename Tb>
418 friend gzofstream&
419 operator<<(gzofstream&,
420 const gzomanip2<Ta,Tb>&);
421
@@ -450,11 +450,11 @@
450 T1 v1,
451 T2 v2)
452 : func(f), val1(v1), val2(v2)
453 { }
454
455 // Insertor applies underlying manipulator function to stream
456 template<typename T1, typename T2>
457 inline gzofstream&
458 operator<<(gzofstream& s, const gzomanip2<T1,T2>& m)
459 { return (*m.func)(s, m.val1, m.val2); }
460
461
--- compat/zlib/contrib/iostream3/zfstream.h
+++ compat/zlib/contrib/iostream3/zfstream.h
@@ -411,11 +411,11 @@
411 */
412 template<typename T1, typename T2>
413 class gzomanip2
414 {
415 public:
416 // Allows inserter to peek at internals
417 template <typename Ta, typename Tb>
418 friend gzofstream&
419 operator<<(gzofstream&,
420 const gzomanip2<Ta,Tb>&);
421
@@ -450,11 +450,11 @@
450 T1 v1,
451 T2 v2)
452 : func(f), val1(v1), val2(v2)
453 { }
454
455 // Inserter applies underlying manipulator function to stream
456 template<typename T1, typename T2>
457 inline gzofstream&
458 operator<<(gzofstream& s, const gzomanip2<T1,T2>& m)
459 { return (*m.func)(s, m.val1, m.val2); }
460
461
--- compat/zlib/contrib/minizip/Makefile
+++ compat/zlib/contrib/minizip/Makefile
@@ -1,6 +1,6 @@
1
-CC=cc
1
+CC?=cc
22
CFLAGS := $(CFLAGS) -O -I../..
33
44
UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
55
ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
66
77
--- compat/zlib/contrib/minizip/Makefile
+++ compat/zlib/contrib/minizip/Makefile
@@ -1,6 +1,6 @@
1 CC=cc
2 CFLAGS := $(CFLAGS) -O -I../..
3
4 UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
5 ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
6
7
--- compat/zlib/contrib/minizip/Makefile
+++ compat/zlib/contrib/minizip/Makefile
@@ -1,6 +1,6 @@
1 CC?=cc
2 CFLAGS := $(CFLAGS) -O -I../..
3
4 UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
5 ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
6
7
--- compat/zlib/contrib/minizip/configure.ac
+++ compat/zlib/contrib/minizip/configure.ac
@@ -1,9 +1,9 @@
11
# -*- Autoconf -*-
22
# Process this file with autoconf to produce a configure script.
33
4
-AC_INIT([minizip], [1.3.0], [bugzilla.redhat.com])
4
+AC_INIT([minizip], [1.3.1], [bugzilla.redhat.com])
55
AC_CONFIG_SRCDIR([minizip.c])
66
AM_INIT_AUTOMAKE([foreign])
77
LT_INIT
88
99
AC_MSG_CHECKING([whether to build example programs])
1010
--- compat/zlib/contrib/minizip/configure.ac
+++ compat/zlib/contrib/minizip/configure.ac
@@ -1,9 +1,9 @@
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT([minizip], [1.3.0], [bugzilla.redhat.com])
5 AC_CONFIG_SRCDIR([minizip.c])
6 AM_INIT_AUTOMAKE([foreign])
7 LT_INIT
8
9 AC_MSG_CHECKING([whether to build example programs])
10
--- compat/zlib/contrib/minizip/configure.ac
+++ compat/zlib/contrib/minizip/configure.ac
@@ -1,9 +1,9 @@
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT([minizip], [1.3.1], [bugzilla.redhat.com])
5 AC_CONFIG_SRCDIR([minizip.c])
6 AM_INIT_AUTOMAKE([foreign])
7 LT_INIT
8
9 AC_MSG_CHECKING([whether to build example programs])
10
--- compat/zlib/contrib/minizip/ioapi.h
+++ compat/zlib/contrib/minizip/ioapi.h
@@ -142,11 +142,11 @@
142142
143143
typedef long (ZCALLBACK *tell_file_func) (voidpf opaque, voidpf stream);
144144
typedef long (ZCALLBACK *seek_file_func) (voidpf opaque, voidpf stream, uLong offset, int origin);
145145
146146
147
-/* here is the "old" 32 bits structure structure */
147
+/* here is the "old" 32 bits structure */
148148
typedef struct zlib_filefunc_def_s
149149
{
150150
open_file_func zopen_file;
151151
read_file_func zread_file;
152152
write_file_func zwrite_file;
153153
--- compat/zlib/contrib/minizip/ioapi.h
+++ compat/zlib/contrib/minizip/ioapi.h
@@ -142,11 +142,11 @@
142
143 typedef long (ZCALLBACK *tell_file_func) (voidpf opaque, voidpf stream);
144 typedef long (ZCALLBACK *seek_file_func) (voidpf opaque, voidpf stream, uLong offset, int origin);
145
146
147 /* here is the "old" 32 bits structure structure */
148 typedef struct zlib_filefunc_def_s
149 {
150 open_file_func zopen_file;
151 read_file_func zread_file;
152 write_file_func zwrite_file;
153
--- compat/zlib/contrib/minizip/ioapi.h
+++ compat/zlib/contrib/minizip/ioapi.h
@@ -142,11 +142,11 @@
142
143 typedef long (ZCALLBACK *tell_file_func) (voidpf opaque, voidpf stream);
144 typedef long (ZCALLBACK *seek_file_func) (voidpf opaque, voidpf stream, uLong offset, int origin);
145
146
147 /* here is the "old" 32 bits structure */
148 typedef struct zlib_filefunc_def_s
149 {
150 open_file_func zopen_file;
151 read_file_func zread_file;
152 write_file_func zwrite_file;
153
--- compat/zlib/contrib/minizip/miniunz.c
+++ compat/zlib/contrib/minizip/miniunz.c
@@ -77,11 +77,11 @@
7777
*/
7878
7979
8080
/* change_file_date : change the date/time of a file
8181
filename : the filename of the file where date/time must be modified
82
- dosdate : the new date at the MSDos format (4 bytes)
82
+ dosdate : the new date at the MSDOS format (4 bytes)
8383
tmu_date : the SAME new date at the tm_unz format */
8484
static void change_file_date(const char *filename, uLong dosdate, tm_unz tmu_date) {
8585
#ifdef _WIN32
8686
HANDLE hFile;
8787
FILETIME ftm,ftLocal,ftCreate,ftLastAcc,ftLastWrite;
@@ -184,11 +184,11 @@
184184
free(buffer);
185185
return 1;
186186
}
187187
188188
static void do_banner(void) {
189
- printf("MiniUnz 1.01b, demo of zLib + Unz package written by Gilles Vollant\n");
189
+ printf("MiniUnz 1.1, demo of zLib + Unz package written by Gilles Vollant\n");
190190
printf("more info at http://www.winimage.com/zLibDll/unzip.html\n\n");
191191
}
192192
193193
static void do_help(void) {
194194
printf("Usage : miniunz [-e] [-x] [-v] [-l] [-o] [-p password] file.zip [file_to_extr.] [-d extractdir]\n\n" \
@@ -353,10 +353,24 @@
353353
354354
if ((*popt_extract_without_path)==0)
355355
write_filename = filename_inzip;
356356
else
357357
write_filename = filename_withoutpath;
358
+
359
+ if (write_filename[0]!='\0')
360
+ {
361
+ const char* relative_check = write_filename;
362
+ while (relative_check[1]!='\0')
363
+ {
364
+ if (relative_check[0]=='.' && relative_check[1]=='.')
365
+ write_filename = relative_check;
366
+ relative_check++;
367
+ }
368
+ }
369
+
370
+ while (write_filename[0]=='/' || write_filename[0]=='.')
371
+ write_filename++;
358372
359373
err = unzOpenCurrentFilePassword(uf,password);
360374
if (err!=UNZ_OK)
361375
{
362376
printf("error %d with zipfile in unzOpenCurrentFilePassword\n",err);
363377
--- compat/zlib/contrib/minizip/miniunz.c
+++ compat/zlib/contrib/minizip/miniunz.c
@@ -77,11 +77,11 @@
77 */
78
79
80 /* change_file_date : change the date/time of a file
81 filename : the filename of the file where date/time must be modified
82 dosdate : the new date at the MSDos format (4 bytes)
83 tmu_date : the SAME new date at the tm_unz format */
84 static void change_file_date(const char *filename, uLong dosdate, tm_unz tmu_date) {
85 #ifdef _WIN32
86 HANDLE hFile;
87 FILETIME ftm,ftLocal,ftCreate,ftLastAcc,ftLastWrite;
@@ -184,11 +184,11 @@
184 free(buffer);
185 return 1;
186 }
187
188 static void do_banner(void) {
189 printf("MiniUnz 1.01b, demo of zLib + Unz package written by Gilles Vollant\n");
190 printf("more info at http://www.winimage.com/zLibDll/unzip.html\n\n");
191 }
192
193 static void do_help(void) {
194 printf("Usage : miniunz [-e] [-x] [-v] [-l] [-o] [-p password] file.zip [file_to_extr.] [-d extractdir]\n\n" \
@@ -353,10 +353,24 @@
353
354 if ((*popt_extract_without_path)==0)
355 write_filename = filename_inzip;
356 else
357 write_filename = filename_withoutpath;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
358
359 err = unzOpenCurrentFilePassword(uf,password);
360 if (err!=UNZ_OK)
361 {
362 printf("error %d with zipfile in unzOpenCurrentFilePassword\n",err);
363
--- compat/zlib/contrib/minizip/miniunz.c
+++ compat/zlib/contrib/minizip/miniunz.c
@@ -77,11 +77,11 @@
77 */
78
79
80 /* change_file_date : change the date/time of a file
81 filename : the filename of the file where date/time must be modified
82 dosdate : the new date at the MSDOS format (4 bytes)
83 tmu_date : the SAME new date at the tm_unz format */
84 static void change_file_date(const char *filename, uLong dosdate, tm_unz tmu_date) {
85 #ifdef _WIN32
86 HANDLE hFile;
87 FILETIME ftm,ftLocal,ftCreate,ftLastAcc,ftLastWrite;
@@ -184,11 +184,11 @@
184 free(buffer);
185 return 1;
186 }
187
188 static void do_banner(void) {
189 printf("MiniUnz 1.1, demo of zLib + Unz package written by Gilles Vollant\n");
190 printf("more info at http://www.winimage.com/zLibDll/unzip.html\n\n");
191 }
192
193 static void do_help(void) {
194 printf("Usage : miniunz [-e] [-x] [-v] [-l] [-o] [-p password] file.zip [file_to_extr.] [-d extractdir]\n\n" \
@@ -353,10 +353,24 @@
353
354 if ((*popt_extract_without_path)==0)
355 write_filename = filename_inzip;
356 else
357 write_filename = filename_withoutpath;
358
359 if (write_filename[0]!='\0')
360 {
361 const char* relative_check = write_filename;
362 while (relative_check[1]!='\0')
363 {
364 if (relative_check[0]=='.' && relative_check[1]=='.')
365 write_filename = relative_check;
366 relative_check++;
367 }
368 }
369
370 while (write_filename[0]=='/' || write_filename[0]=='.')
371 write_filename++;
372
373 err = unzOpenCurrentFilePassword(uf,password);
374 if (err!=UNZ_OK)
375 {
376 printf("error %d with zipfile in unzOpenCurrentFilePassword\n",err);
377
--- compat/zlib/contrib/minizip/unzip.c
+++ compat/zlib/contrib/minizip/unzip.c
@@ -115,11 +115,11 @@
115115
116116
117117
const char unz_copyright[] =
118118
" unzip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll";
119119
120
-/* unz_file_info_interntal contain internal info about a file in zipfile*/
120
+/* unz_file_info64_internal contain internal info about a file in zipfile*/
121121
typedef struct unz_file_info64_internal_s
122122
{
123123
ZPOS64_T offset_curfile;/* relative offset of local header 8 bytes */
124124
} unz_file_info64_internal;
125125
@@ -448,11 +448,11 @@
448448
449449
/* the signature, already checked */
450450
if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
451451
return CENTRALDIRINVALID;
452452
453
- /* number of the disk with the start of the zip64 end of central directory */
453
+ /* number of the disk with the start of the zip64 end of central directory */
454454
if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
455455
return CENTRALDIRINVALID;
456456
if (uL != 0)
457457
return CENTRALDIRINVALID;
458458
@@ -495,13 +495,13 @@
495495
unz64_s us;
496496
unz64_s *s;
497497
ZPOS64_T central_pos;
498498
uLong uL;
499499
500
- uLong number_disk; /* number of the current dist, used for
500
+ uLong number_disk; /* number of the current disk, used for
501501
spanning ZIP, unsupported, always 0*/
502
- uLong number_disk_with_CD; /* number the the disk with central dir, used
502
+ uLong number_disk_with_CD; /* number the disk with central dir, used
503503
for spanning ZIP, unsupported, always 0*/
504504
ZPOS64_T number_entry_CD; /* total number of entries in
505505
the central dir
506506
(same than number_entry on nospan) */
507507
508508
--- compat/zlib/contrib/minizip/unzip.c
+++ compat/zlib/contrib/minizip/unzip.c
@@ -115,11 +115,11 @@
115
116
117 const char unz_copyright[] =
118 " unzip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll";
119
120 /* unz_file_info_interntal contain internal info about a file in zipfile*/
121 typedef struct unz_file_info64_internal_s
122 {
123 ZPOS64_T offset_curfile;/* relative offset of local header 8 bytes */
124 } unz_file_info64_internal;
125
@@ -448,11 +448,11 @@
448
449 /* the signature, already checked */
450 if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
451 return CENTRALDIRINVALID;
452
453 /* number of the disk with the start of the zip64 end of central directory */
454 if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
455 return CENTRALDIRINVALID;
456 if (uL != 0)
457 return CENTRALDIRINVALID;
458
@@ -495,13 +495,13 @@
495 unz64_s us;
496 unz64_s *s;
497 ZPOS64_T central_pos;
498 uLong uL;
499
500 uLong number_disk; /* number of the current dist, used for
501 spanning ZIP, unsupported, always 0*/
502 uLong number_disk_with_CD; /* number the the disk with central dir, used
503 for spanning ZIP, unsupported, always 0*/
504 ZPOS64_T number_entry_CD; /* total number of entries in
505 the central dir
506 (same than number_entry on nospan) */
507
508
--- compat/zlib/contrib/minizip/unzip.c
+++ compat/zlib/contrib/minizip/unzip.c
@@ -115,11 +115,11 @@
115
116
117 const char unz_copyright[] =
118 " unzip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll";
119
120 /* unz_file_info64_internal contain internal info about a file in zipfile*/
121 typedef struct unz_file_info64_internal_s
122 {
123 ZPOS64_T offset_curfile;/* relative offset of local header 8 bytes */
124 } unz_file_info64_internal;
125
@@ -448,11 +448,11 @@
448
449 /* the signature, already checked */
450 if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
451 return CENTRALDIRINVALID;
452
453 /* number of the disk with the start of the zip64 end of central directory */
454 if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
455 return CENTRALDIRINVALID;
456 if (uL != 0)
457 return CENTRALDIRINVALID;
458
@@ -495,13 +495,13 @@
495 unz64_s us;
496 unz64_s *s;
497 ZPOS64_T central_pos;
498 uLong uL;
499
500 uLong number_disk; /* number of the current disk, used for
501 spanning ZIP, unsupported, always 0*/
502 uLong number_disk_with_CD; /* number the disk with central dir, used
503 for spanning ZIP, unsupported, always 0*/
504 ZPOS64_T number_entry_CD; /* total number of entries in
505 the central dir
506 (same than number_entry on nospan) */
507
508
--- compat/zlib/contrib/minizip/unzip.h
+++ compat/zlib/contrib/minizip/unzip.h
@@ -304,11 +304,11 @@
304304
uLong commentBufferSize);
305305
/*
306306
Get Info about the current file
307307
if pfile_info!=NULL, the *pfile_info structure will contain some info about
308308
the current file
309
- if szFileName!=NULL, the filemane string will be copied in szFileName
309
+ if szFileName!=NULL, the filename string will be copied in szFileName
310310
(fileNameBufferSize is the size of the buffer)
311311
if extraField!=NULL, the extra field information will be copied in extraField
312312
(extraFieldBufferSize is the size of the buffer).
313313
This is the Central-header version of the extra field
314314
if szComment!=NULL, the comment string of the file will be copied in szComment
315315
--- compat/zlib/contrib/minizip/unzip.h
+++ compat/zlib/contrib/minizip/unzip.h
@@ -304,11 +304,11 @@
304 uLong commentBufferSize);
305 /*
306 Get Info about the current file
307 if pfile_info!=NULL, the *pfile_info structure will contain some info about
308 the current file
309 if szFileName!=NULL, the filemane string will be copied in szFileName
310 (fileNameBufferSize is the size of the buffer)
311 if extraField!=NULL, the extra field information will be copied in extraField
312 (extraFieldBufferSize is the size of the buffer).
313 This is the Central-header version of the extra field
314 if szComment!=NULL, the comment string of the file will be copied in szComment
315
--- compat/zlib/contrib/minizip/unzip.h
+++ compat/zlib/contrib/minizip/unzip.h
@@ -304,11 +304,11 @@
304 uLong commentBufferSize);
305 /*
306 Get Info about the current file
307 if pfile_info!=NULL, the *pfile_info structure will contain some info about
308 the current file
309 if szFileName!=NULL, the filename string will be copied in szFileName
310 (fileNameBufferSize is the size of the buffer)
311 if extraField!=NULL, the extra field information will be copied in extraField
312 (extraFieldBufferSize is the size of the buffer).
313 This is the Central-header version of the extra field
314 if szComment!=NULL, the comment string of the file will be copied in szComment
315
--- compat/zlib/contrib/minizip/zip.c
+++ compat/zlib/contrib/minizip/zip.c
@@ -573,11 +573,11 @@
573573
574574
/* the signature, already checked */
575575
if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
576576
return 0;
577577
578
- /* number of the disk with the start of the zip64 end of central directory */
578
+ /* number of the disk with the start of the zip64 end of central directory */
579579
if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
580580
return 0;
581581
if (uL != 0)
582582
return 0;
583583
@@ -612,13 +612,13 @@
612612
ZPOS64_T size_central_dir; /* size of the central directory */
613613
ZPOS64_T offset_central_dir; /* offset of start of central directory */
614614
ZPOS64_T central_pos;
615615
uLong uL;
616616
617
- uLong number_disk; /* number of the current dist, used for
617
+ uLong number_disk; /* number of the current disk, used for
618618
spanning ZIP, unsupported, always 0*/
619
- uLong number_disk_with_CD; /* number the the disk with central dir, used
619
+ uLong number_disk_with_CD; /* number of the disk with central dir, used
620620
for spanning ZIP, unsupported, always 0*/
621621
ZPOS64_T number_entry;
622622
ZPOS64_T number_entry_CD; /* total number of entries in
623623
the central dir
624624
(same than number_entry on nospan) */
@@ -1040,10 +1040,21 @@
10401040
return ZIP_PARAMERROR;
10411041
#else
10421042
if ((method!=0) && (method!=Z_DEFLATED))
10431043
return ZIP_PARAMERROR;
10441044
#endif
1045
+
1046
+ // The filename and comment length must fit in 16 bits.
1047
+ if ((filename!=NULL) && (strlen(filename)>0xffff))
1048
+ return ZIP_PARAMERROR;
1049
+ if ((comment!=NULL) && (strlen(comment)>0xffff))
1050
+ return ZIP_PARAMERROR;
1051
+ // The extra field length must fit in 16 bits. If the member also requires
1052
+ // a Zip64 extra block, that will also need to fit within that 16-bit
1053
+ // length, but that will be checked for later.
1054
+ if ((size_extrafield_local>0xffff) || (size_extrafield_global>0xffff))
1055
+ return ZIP_PARAMERROR;
10451056
10461057
zi = (zip64_internal*)file;
10471058
10481059
if (zi->in_opened_file_inzip == 1)
10491060
{
@@ -1595,11 +1606,11 @@
15951606
{
15961607
char* p = NULL;
15971608
15981609
if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree)
15991610
{
1600
- // we can not write more data to the buffer that we have room for.
1611
+ // we cannot write more data to the buffer that we have room for.
16011612
return ZIP_BADZIPFILE;
16021613
}
16031614
16041615
p = zi->ci.central_header + zi->ci.size_centralheader;
16051616
@@ -1859,11 +1870,11 @@
18591870
}
18601871
}
18611872
free_linkedlist(&(zi->central_dir));
18621873
18631874
pos = centraldir_pos_inzip - zi->add_position_when_writing_offset;
1864
- if(pos >= 0xffffffff || zi->number_entry > 0xFFFF)
1875
+ if(pos >= 0xffffffff || zi->number_entry >= 0xFFFF)
18651876
{
18661877
ZPOS64_T Zip64EOCDpos = ZTELL64(zi->z_filefunc,zi->filestream);
18671878
Write_Zip64EndOfCentralDirectoryRecord(zi, size_centraldir, centraldir_pos_inzip);
18681879
18691880
Write_Zip64EndOfCentralDirectoryLocator(zi, Zip64EOCDpos);
18701881
--- compat/zlib/contrib/minizip/zip.c
+++ compat/zlib/contrib/minizip/zip.c
@@ -573,11 +573,11 @@
573
574 /* the signature, already checked */
575 if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
576 return 0;
577
578 /* number of the disk with the start of the zip64 end of central directory */
579 if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
580 return 0;
581 if (uL != 0)
582 return 0;
583
@@ -612,13 +612,13 @@
612 ZPOS64_T size_central_dir; /* size of the central directory */
613 ZPOS64_T offset_central_dir; /* offset of start of central directory */
614 ZPOS64_T central_pos;
615 uLong uL;
616
617 uLong number_disk; /* number of the current dist, used for
618 spanning ZIP, unsupported, always 0*/
619 uLong number_disk_with_CD; /* number the the disk with central dir, used
620 for spanning ZIP, unsupported, always 0*/
621 ZPOS64_T number_entry;
622 ZPOS64_T number_entry_CD; /* total number of entries in
623 the central dir
624 (same than number_entry on nospan) */
@@ -1040,10 +1040,21 @@
1040 return ZIP_PARAMERROR;
1041 #else
1042 if ((method!=0) && (method!=Z_DEFLATED))
1043 return ZIP_PARAMERROR;
1044 #endif
 
 
 
 
 
 
 
 
 
 
 
1045
1046 zi = (zip64_internal*)file;
1047
1048 if (zi->in_opened_file_inzip == 1)
1049 {
@@ -1595,11 +1606,11 @@
1595 {
1596 char* p = NULL;
1597
1598 if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree)
1599 {
1600 // we can not write more data to the buffer that we have room for.
1601 return ZIP_BADZIPFILE;
1602 }
1603
1604 p = zi->ci.central_header + zi->ci.size_centralheader;
1605
@@ -1859,11 +1870,11 @@
1859 }
1860 }
1861 free_linkedlist(&(zi->central_dir));
1862
1863 pos = centraldir_pos_inzip - zi->add_position_when_writing_offset;
1864 if(pos >= 0xffffffff || zi->number_entry > 0xFFFF)
1865 {
1866 ZPOS64_T Zip64EOCDpos = ZTELL64(zi->z_filefunc,zi->filestream);
1867 Write_Zip64EndOfCentralDirectoryRecord(zi, size_centraldir, centraldir_pos_inzip);
1868
1869 Write_Zip64EndOfCentralDirectoryLocator(zi, Zip64EOCDpos);
1870
--- compat/zlib/contrib/minizip/zip.c
+++ compat/zlib/contrib/minizip/zip.c
@@ -573,11 +573,11 @@
573
574 /* the signature, already checked */
575 if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
576 return 0;
577
578 /* number of the disk with the start of the zip64 end of central directory */
579 if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
580 return 0;
581 if (uL != 0)
582 return 0;
583
@@ -612,13 +612,13 @@
612 ZPOS64_T size_central_dir; /* size of the central directory */
613 ZPOS64_T offset_central_dir; /* offset of start of central directory */
614 ZPOS64_T central_pos;
615 uLong uL;
616
617 uLong number_disk; /* number of the current disk, used for
618 spanning ZIP, unsupported, always 0*/
619 uLong number_disk_with_CD; /* number of the disk with central dir, used
620 for spanning ZIP, unsupported, always 0*/
621 ZPOS64_T number_entry;
622 ZPOS64_T number_entry_CD; /* total number of entries in
623 the central dir
624 (same than number_entry on nospan) */
@@ -1040,10 +1040,21 @@
1040 return ZIP_PARAMERROR;
1041 #else
1042 if ((method!=0) && (method!=Z_DEFLATED))
1043 return ZIP_PARAMERROR;
1044 #endif
1045
1046 // The filename and comment length must fit in 16 bits.
1047 if ((filename!=NULL) && (strlen(filename)>0xffff))
1048 return ZIP_PARAMERROR;
1049 if ((comment!=NULL) && (strlen(comment)>0xffff))
1050 return ZIP_PARAMERROR;
1051 // The extra field length must fit in 16 bits. If the member also requires
1052 // a Zip64 extra block, that will also need to fit within that 16-bit
1053 // length, but that will be checked for later.
1054 if ((size_extrafield_local>0xffff) || (size_extrafield_global>0xffff))
1055 return ZIP_PARAMERROR;
1056
1057 zi = (zip64_internal*)file;
1058
1059 if (zi->in_opened_file_inzip == 1)
1060 {
@@ -1595,11 +1606,11 @@
1606 {
1607 char* p = NULL;
1608
1609 if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree)
1610 {
1611 // we cannot write more data to the buffer that we have room for.
1612 return ZIP_BADZIPFILE;
1613 }
1614
1615 p = zi->ci.central_header + zi->ci.size_centralheader;
1616
@@ -1859,11 +1870,11 @@
1870 }
1871 }
1872 free_linkedlist(&(zi->central_dir));
1873
1874 pos = centraldir_pos_inzip - zi->add_position_when_writing_offset;
1875 if(pos >= 0xffffffff || zi->number_entry >= 0xFFFF)
1876 {
1877 ZPOS64_T Zip64EOCDpos = ZTELL64(zi->z_filefunc,zi->filestream);
1878 Write_Zip64EndOfCentralDirectoryRecord(zi, size_centraldir, centraldir_pos_inzip);
1879
1880 Write_Zip64EndOfCentralDirectoryLocator(zi, Zip64EOCDpos);
1881
--- compat/zlib/contrib/minizip/zip.h
+++ compat/zlib/contrib/minizip/zip.h
@@ -175,13 +175,13 @@
175175
/*
176176
Open a file in the ZIP for writing.
177177
filename : the filename in zip (if NULL, '-' without quote will be used
178178
*zipfi contain supplemental information
179179
if extrafield_local!=NULL and size_extrafield_local>0, extrafield_local
180
- contains the extrafield data the the local header
180
+ contains the extrafield data for the local header
181181
if extrafield_global!=NULL and size_extrafield_global>0, extrafield_global
182
- contains the extrafield data the the local header
182
+ contains the extrafield data for the global header
183183
if comment != NULL, comment contain the comment string
184184
method contain the compression method (0 for store, Z_DEFLATED for deflate)
185185
level contain the level of compression (can be Z_DEFAULT_COMPRESSION)
186186
zip64 is set to 1 if a zip64 extended information block should be added to the local file header.
187187
this MUST be '1' if the uncompressed size is >= 0xffffffff.
188188
--- compat/zlib/contrib/minizip/zip.h
+++ compat/zlib/contrib/minizip/zip.h
@@ -175,13 +175,13 @@
175 /*
176 Open a file in the ZIP for writing.
177 filename : the filename in zip (if NULL, '-' without quote will be used
178 *zipfi contain supplemental information
179 if extrafield_local!=NULL and size_extrafield_local>0, extrafield_local
180 contains the extrafield data the the local header
181 if extrafield_global!=NULL and size_extrafield_global>0, extrafield_global
182 contains the extrafield data the the local header
183 if comment != NULL, comment contain the comment string
184 method contain the compression method (0 for store, Z_DEFLATED for deflate)
185 level contain the level of compression (can be Z_DEFAULT_COMPRESSION)
186 zip64 is set to 1 if a zip64 extended information block should be added to the local file header.
187 this MUST be '1' if the uncompressed size is >= 0xffffffff.
188
--- compat/zlib/contrib/minizip/zip.h
+++ compat/zlib/contrib/minizip/zip.h
@@ -175,13 +175,13 @@
175 /*
176 Open a file in the ZIP for writing.
177 filename : the filename in zip (if NULL, '-' without quote will be used
178 *zipfi contain supplemental information
179 if extrafield_local!=NULL and size_extrafield_local>0, extrafield_local
180 contains the extrafield data for the local header
181 if extrafield_global!=NULL and size_extrafield_global>0, extrafield_global
182 contains the extrafield data for the global header
183 if comment != NULL, comment contain the comment string
184 method contain the compression method (0 for store, Z_DEFLATED for deflate)
185 level contain the level of compression (can be Z_DEFAULT_COMPRESSION)
186 zip64 is set to 1 if a zip64 extended information block should be added to the local file header.
187 this MUST be '1' if the uncompressed size is >= 0xffffffff.
188
--- compat/zlib/contrib/pascal/zlibpas.pas
+++ compat/zlib/contrib/pascal/zlibpas.pas
@@ -8,11 +8,11 @@
88
unit zlibpas;
99
1010
interface
1111
1212
const
13
- ZLIB_VERSION = '1.3.0';
13
+ ZLIB_VERSION = '1.3.1';
1414
ZLIB_VERNUM = $12a0;
1515
1616
type
1717
alloc_func = function(opaque: Pointer; items, size: Integer): Pointer;
1818
cdecl;
1919
--- compat/zlib/contrib/pascal/zlibpas.pas
+++ compat/zlib/contrib/pascal/zlibpas.pas
@@ -8,11 +8,11 @@
8 unit zlibpas;
9
10 interface
11
12 const
13 ZLIB_VERSION = '1.3.0';
14 ZLIB_VERNUM = $12a0;
15
16 type
17 alloc_func = function(opaque: Pointer; items, size: Integer): Pointer;
18 cdecl;
19
--- compat/zlib/contrib/pascal/zlibpas.pas
+++ compat/zlib/contrib/pascal/zlibpas.pas
@@ -8,11 +8,11 @@
8 unit zlibpas;
9
10 interface
11
12 const
13 ZLIB_VERSION = '1.3.1';
14 ZLIB_VERNUM = $12a0;
15
16 type
17 alloc_func = function(opaque: Pointer; items, size: Integer): Pointer;
18 cdecl;
19
--- compat/zlib/contrib/puff/puff.c
+++ compat/zlib/contrib/puff/puff.c
@@ -591,14 +591,14 @@
591591
*
592592
* - The code lengths are stored in order for the symbols, so lengths are
593593
* provided for each of the literal/length symbols, and for each of the
594594
* distance symbols.
595595
*
596
- * - If a symbol is not used in the block, this is represented by a zero as
597
- * as the code length. This does not mean a zero-length code, but rather
598
- * that no code should be created for this symbol. There is no way in the
599
- * deflate format to represent a zero-length code.
596
+ * - If a symbol is not used in the block, this is represented by a zero as the
597
+ * code length. This does not mean a zero-length code, but rather that no
598
+ * code should be created for this symbol. There is no way in the deflate
599
+ * format to represent a zero-length code.
600600
*
601601
* - The maximum number of bits in a code is 15, so the possible lengths for
602602
* any code are 1..15.
603603
*
604604
* - The fact that a length of zero is not permitted for a code has an
605605
--- compat/zlib/contrib/puff/puff.c
+++ compat/zlib/contrib/puff/puff.c
@@ -591,14 +591,14 @@
591 *
592 * - The code lengths are stored in order for the symbols, so lengths are
593 * provided for each of the literal/length symbols, and for each of the
594 * distance symbols.
595 *
596 * - If a symbol is not used in the block, this is represented by a zero as
597 * as the code length. This does not mean a zero-length code, but rather
598 * that no code should be created for this symbol. There is no way in the
599 * deflate format to represent a zero-length code.
600 *
601 * - The maximum number of bits in a code is 15, so the possible lengths for
602 * any code are 1..15.
603 *
604 * - The fact that a length of zero is not permitted for a code has an
605
--- compat/zlib/contrib/puff/puff.c
+++ compat/zlib/contrib/puff/puff.c
@@ -591,14 +591,14 @@
591 *
592 * - The code lengths are stored in order for the symbols, so lengths are
593 * provided for each of the literal/length symbols, and for each of the
594 * distance symbols.
595 *
596 * - If a symbol is not used in the block, this is represented by a zero as the
597 * code length. This does not mean a zero-length code, but rather that no
598 * code should be created for this symbol. There is no way in the deflate
599 * format to represent a zero-length code.
600 *
601 * - The maximum number of bits in a code is 15, so the possible lengths for
602 * any code are 1..15.
603 *
604 * - The fact that a length of zero is not permitted for a code has an
605
--- compat/zlib/contrib/vstudio/readme.txt
+++ compat/zlib/contrib/vstudio/readme.txt
@@ -1,75 +1,81 @@
1
-Building instructions for the DLL versions of Zlib 1.3.0
2
-========================================================
3
-
4
-This directory contains projects that build zlib and minizip using
5
-Microsoft Visual C++ 9.0/10.0.
6
-
7
-You don't need to build these projects yourself. You can download the
8
-binaries from:
9
- http://www.winimage.com/zLibDll
10
-
11
-More information can be found at this site.
12
-
13
-
14
-
15
-
16
-
17
-Build instructions for Visual Studio 2008 (32 bits or 64 bits)
---------------------------------------------------------------
18
-- Decompress current zlib, including all contrib/* files
19
-- Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008
20
-- Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32"
21
-
22
-Build instructions for Visual Studio 2010 (32 bits or 64 bits)
---------------------------------------------------------------
23
-- Decompress current zlib, including all contrib/* files
24
-- Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010
25
-
26
-Build instructions for Visual Studio 2012 (32 bits or 64 bits)
---------------------------------------------------------------
27
-- Decompress current zlib, including all contrib/* files
28
-- Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012
29
-
30
-Build instructions for Visual Studio 2013 (32 bits or 64 bits)
---------------------------------------------------------------
31
-- Decompress current zlib, including all contrib/* files
32
-- Open contrib\vstudio\vc12\zlibvc.sln with Microsoft Visual C++ 2013
33
-
34
-Build instructions for Visual Studio 2015 (32 bits or 64 bits)
---------------------------------------------------------------
35
-- Decompress current zlib, including all contrib/* files
36
-- Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015
37
-
38
-
39
-Important
----------
40
-- To use zlibwapi.dll in your application, you must define the
41
- macro ZLIB_WINAPI when compiling your application's source files.
42
-
43
-
44
-Additional notes
-----------------
45
-- This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
46
- by Gilles Vollant from the zlib 1.1.x sources, and distributed at
47
- http://www.winimage.com/zLibDll
48
- It uses the WINAPI calling convention for the exported functions, and
49
- includes the minizip functionality. If your application needs that
50
- particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.
51
-
52
-- The new DLL was renamed because there exist several incompatible
53
- versions of zlib.dll on the Internet.
54
-
55
-- There is also an official DLL build of zlib, named zlib1.dll. This one
56
- is exporting the functions using the CDECL convention. See the file
57
- win32\DLL_FAQ.txt found in this zlib distribution.
58
-
59
-- There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
60
- has a slightly different effect. To avoid compatibility problems, do
61
- not define it here.
62
-
63
-
64
-Gilles Vollant
65
-[email protected]
66
-
67
-Visual Studio 2013 and 2015 Projects from Sean Hunt
68
-[email protected]
1
+Building instructions for the DLL versions of Zlib 1.3.1
2
+========================================================
3
+
4
+This directory contains projects that build zlib and minizip using
5
+Microsoft Visual C++ 9.0/10.0.
6
+
7
+You don't need to build these projects yourself. You can download the
8
+binaries from:
9
+ http://www.winimage.com/zLibDll
10
+
11
+More information can be found at this site.
12
+
13
+
14
+
15
+
16
+
17
+Build instructions for Visual Studio 2008 (32 bits or 64 bits)
18
+--------------------------------------------------------------
19
+- Decompress current zlib, including all contrib/* files
20
+- Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008
21
+- Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32"
22
+
23
+Build instructions for Visual Studio 2010 (32 bits or 64 bits)
24
+--------------------------------------------------------------
25
+- Decompress current zlib, including all contrib/* files
26
+- Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010
27
+
28
+Build instructions for Visual Studio 2012 (32 bits or 64 bits)
29
+--------------------------------------------------------------
30
+- Decompress current zlib, including all contrib/* files
31
+- Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012
32
+
33
+Build instructions for Visual Studio 2013 (32 bits or 64 bits)
34
+--------------------------------------------------------------
35
+- Decompress current zlib, including all contrib/* files
36
+- Open contrib\vstudio\vc12\zlibvc.sln with Microsoft Visual C++ 2013
37
+
38
+Build instructions for Visual Studio 2015 (32 bits or 64 bits)
39
+--------------------------------------------------------------
40
+- Decompress current zlib, including all contrib/* files
41
+- Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015
42
+
43
+Build instructions for Visual Studio 2022 (64 bits)
44
+--------------------------------------------------------------
45
+- Decompress current zlib, including all contrib/* files
46
+- Open contrib\vstudio\vc143\zlibvc.sln with Microsoft Visual C++ 2022
47
+
48
+
49
+
50
+Important
51
+---------
52
+- To use zlibwapi.dll in your application, you must define the
53
+ macro ZLIB_WINAPI when compiling your application's source files.
54
+
55
+
56
+Additional notes
57
+----------------
58
+- This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
59
+ by Gilles Vollant from the zlib 1.1.x sources, and distributed at
60
+ http://www.winimage.com/zLibDll
61
+ It uses the WINAPI calling convention for the exported functions, and
62
+ includes the minizip functionality. If your application needs that
63
+ particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.
64
+
65
+- The new DLL was renamed because there exist several incompatible
66
+ versions of zlib.dll on the Internet.
67
+
68
+- There is also an official DLL build of zlib, named zlib1.dll. This one
69
+ is exporting the functions using the CDECL convention. See the file
70
+ win32\DLL_FAQ.txt found in this zlib distribution.
71
+
72
+- There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
73
+ has a slightly different effect. To avoid compatibility problems, do
74
+ not define it here.
75
+
76
+
77
+Gilles Vollant
78
+[email protected]
79
+
80
+Visual Studio 2013, 2015, and 2022 Projects from Sean Hunt
81
+[email protected]
6982
--- compat/zlib/contrib/vstudio/readme.txt
+++ compat/zlib/contrib/vstudio/readme.txt
@@ -1,75 +1,81 @@
1 Building instructions for the DLL versions of Zlib 1.3.0
2 ========================================================
3
4 This directory contains projects that build zlib and minizip using
5 Microsoft Visual C++ 9.0/10.0.
6
7 You don't need to build these projects yourself. You can download the
8 binaries from:
9 http://www.winimage.com/zLibDll
10
11 More information can be found at this site.
12
13
14
15
16
17 Build instructions for Visual Studio 2008 (32 bits or 64 bits)
---------------------------------------------------------------
18 - Decompress current zlib, including all contrib/* files
19 - Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008
20 - Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32"
21
22 Build instructions for Visual Studio 2010 (32 bits or 64 bits)
---------------------------------------------------------------
23 - Decompress current zlib, including all contrib/* files
24 - Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010
25
26 Build instructions for Visual Studio 2012 (32 bits or 64 bits)
---------------------------------------------------------------
27 - Decompress current zlib, including all contrib/* files
28 - Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012
29
30 Build instructions for Visual Studio 2013 (32 bits or 64 bits)
---------------------------------------------------------------
31 - Decompress current zlib, including all contrib/* files
32 - Open contrib\vstudio\vc12\zlibvc.sln with Microsoft Visual C++ 2013
33
34 Build instructions for Visual Studio 2015 (32 bits or 64 bits)
---------------------------------------------------------------
35 - Decompress current zlib, including all contrib/* files
36 - Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015
37
38
39 Important
----------
40 - To use zlibwapi.dll in your application, you must define the
41 macro ZLIB_WINAPI when compiling your application's source files.
42
43
44 Additional notes
-----------------
45 - This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
46 by Gilles Vollant from the zlib 1.1.x sources, and distributed at
47 http://www.winimage.com/zLibDll
48 It uses the WINAPI calling convention for the exported functions, and
49 includes the minizip functionality. If your application needs that
50 particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.
51
52 - The new DLL was renamed because there exist several incompatible
53 versions of zlib.dll on the Internet.
54
55 - There is also an official DLL build of zlib, named zlib1.dll. This one
56 is exporting the functions using the CDECL convention. See the file
57 win32\DLL_FAQ.txt found in this zlib distribution.
58
59 - There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
60 has a slightly different effect. To avoid compatibility problems, do
61 not define it here.
62
63
64 Gilles Vollant
65 [email protected]
66
67 Visual Studio 2013 and 2015 Projects from Sean Hunt
68 [email protected]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
--- compat/zlib/contrib/vstudio/readme.txt
+++ compat/zlib/contrib/vstudio/readme.txt
@@ -1,75 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
---------------------------------------------------------------
 
 
 
 
 
---------------------------------------------------------------
 
 
 
 
---------------------------------------------------------------
 
 
 
 
---------------------------------------------------------------
 
 
 
 
---------------------------------------------------------------
 
 
 
 
 
----------
 
 
 
 
 
-----------------
1 Building instructions for the DLL versions of Zlib 1.3.1
2 ========================================================
3
4 This directory contains projects that build zlib and minizip using
5 Microsoft Visual C++ 9.0/10.0.
6
7 You don't need to build these projects yourself. You can download the
8 binaries from:
9 http://www.winimage.com/zLibDll
10
11 More information can be found at this site.
12
13
14
15
16
17 Build instructions for Visual Studio 2008 (32 bits or 64 bits)
18 --------------------------------------------------------------
19 - Decompress current zlib, including all contrib/* files
20 - Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008
21 - Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32"
22
23 Build instructions for Visual Studio 2010 (32 bits or 64 bits)
24 --------------------------------------------------------------
25 - Decompress current zlib, including all contrib/* files
26 - Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010
27
28 Build instructions for Visual Studio 2012 (32 bits or 64 bits)
29 --------------------------------------------------------------
30 - Decompress current zlib, including all contrib/* files
31 - Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012
32
33 Build instructions for Visual Studio 2013 (32 bits or 64 bits)
34 --------------------------------------------------------------
35 - Decompress current zlib, including all contrib/* files
36 - Open contrib\vstudio\vc12\zlibvc.sln with Microsoft Visual C++ 2013
37
38 Build instructions for Visual Studio 2015 (32 bits or 64 bits)
39 --------------------------------------------------------------
40 - Decompress current zlib, including all contrib/* files
41 - Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015
42
43 Build instructions for Visual Studio 2022 (64 bits)
44 --------------------------------------------------------------
45 - Decompress current zlib, including all contrib/* files
46 - Open contrib\vstudio\vc143\zlibvc.sln with Microsoft Visual C++ 2022
47
48
49
50 Important
51 ---------
52 - To use zlibwapi.dll in your application, you must define the
53 macro ZLIB_WINAPI when compiling your application's source files.
54
55
56 Additional notes
57 ----------------
58 - This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
59 by Gilles Vollant from the zlib 1.1.x sources, and distributed at
60 http://www.winimage.com/zLibDll
61 It uses the WINAPI calling convention for the exported functions, and
62 includes the minizip functionality. If your application needs that
63 particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.
64
65 - The new DLL was renamed because there exist several incompatible
66 versions of zlib.dll on the Internet.
67
68 - There is also an official DLL build of zlib, named zlib1.dll. This one
69 is exporting the functions using the CDECL convention. See the file
70 win32\DLL_FAQ.txt found in this zlib distribution.
71
72 - There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
73 has a slightly different effect. To avoid compatibility problems, do
74 not define it here.
75
76
77 Gilles Vollant
78 [email protected]
79
80 Visual Studio 2013, 2015, and 2022 Projects from Sean Hunt
81 [email protected]
82
--- compat/zlib/contrib/vstudio/vc10/zlib.rc
+++ compat/zlib/contrib/vstudio/vc10/zlib.rc
@@ -1,11 +1,11 @@
11
#include <windows.h>
22
33
#define IDR_VERSION1 1
44
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5
- FILEVERSION 1, 3, 0, 0
6
- PRODUCTVERSION 1, 3, 0, 0
5
+ FILEVERSION 1, 3, 1, 0
6
+ PRODUCTVERSION 1, 3, 1, 0
77
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
88
FILEFLAGS 0
99
FILEOS VOS_DOS_WINDOWS32
1010
FILETYPE VFT_DLL
1111
FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
1515
BLOCK "040904E4"
1616
//language ID = U.S. English, char set = Windows, Multilingual
1717
1818
BEGIN
1919
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20
- VALUE "FileVersion", "1.3.0\0"
20
+ VALUE "FileVersion", "1.3.1\0"
2121
VALUE "InternalName", "zlib\0"
2222
VALUE "OriginalFilename", "zlibwapi.dll\0"
2323
VALUE "ProductName", "ZLib.DLL\0"
2424
VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25
- VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
25
+ VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
2626
END
2727
END
2828
BLOCK "VarFileInfo"
2929
BEGIN
3030
VALUE "Translation", 0x0409, 1252
3131
END
3232
END
3333
--- compat/zlib/contrib/vstudio/vc10/zlib.rc
+++ compat/zlib/contrib/vstudio/vc10/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 0, 0
6 PRODUCTVERSION 1, 3, 0, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.0\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc10/zlib.rc
+++ compat/zlib/contrib/vstudio/vc10/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 1, 0
6 PRODUCTVERSION 1, 3, 1, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.1\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc10/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc10/zlibvc.def
@@ -1,9 +1,9 @@
11
LIBRARY
22
; zlib data compression and ZIP file I/O library
33
4
-VERSION 1.3
4
+VERSION 1.3.1
55
66
EXPORTS
77
adler32 @1
88
compress @2
99
crc32 @3
1010
--- compat/zlib/contrib/vstudio/vc10/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc10/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc10/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc10/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3.1
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc11/zlib.rc
+++ compat/zlib/contrib/vstudio/vc11/zlib.rc
@@ -1,11 +1,11 @@
11
#include <windows.h>
22
33
#define IDR_VERSION1 1
44
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5
- FILEVERSION 1, 3, 0, 0
6
- PRODUCTVERSION 1, 3, 0, 0
5
+ FILEVERSION 1, 3, 1, 0
6
+ PRODUCTVERSION 1, 3, 1, 0
77
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
88
FILEFLAGS 0
99
FILEOS VOS_DOS_WINDOWS32
1010
FILETYPE VFT_DLL
1111
FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
1515
BLOCK "040904E4"
1616
//language ID = U.S. English, char set = Windows, Multilingual
1717
1818
BEGIN
1919
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20
- VALUE "FileVersion", "1.3.0\0"
20
+ VALUE "FileVersion", "1.3.1\0"
2121
VALUE "InternalName", "zlib\0"
2222
VALUE "OriginalFilename", "zlibwapi.dll\0"
2323
VALUE "ProductName", "ZLib.DLL\0"
2424
VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25
- VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
25
+ VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
2626
END
2727
END
2828
BLOCK "VarFileInfo"
2929
BEGIN
3030
VALUE "Translation", 0x0409, 1252
3131
END
3232
END
3333
--- compat/zlib/contrib/vstudio/vc11/zlib.rc
+++ compat/zlib/contrib/vstudio/vc11/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 0, 0
6 PRODUCTVERSION 1, 3, 0, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.0\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc11/zlib.rc
+++ compat/zlib/contrib/vstudio/vc11/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 1, 0
6 PRODUCTVERSION 1, 3, 1, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.1\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc11/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc11/zlibvc.def
@@ -1,9 +1,9 @@
11
LIBRARY
22
; zlib data compression and ZIP file I/O library
33
4
-VERSION 1.3
4
+VERSION 1.3.1
55
66
EXPORTS
77
adler32 @1
88
compress @2
99
crc32 @3
1010
--- compat/zlib/contrib/vstudio/vc11/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc11/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc11/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc11/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3.1
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc12/zlib.rc
+++ compat/zlib/contrib/vstudio/vc12/zlib.rc
@@ -1,11 +1,11 @@
11
#include <windows.h>
22
33
#define IDR_VERSION1 1
44
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5
- FILEVERSION 1, 3, 0, 0
6
- PRODUCTVERSION 1, 3, 0, 0
5
+ FILEVERSION 1, 3, 1, 0
6
+ PRODUCTVERSION 1, 3, 1, 0
77
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
88
FILEFLAGS 0
99
FILEOS VOS_DOS_WINDOWS32
1010
FILETYPE VFT_DLL
1111
FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
1515
BLOCK "040904E4"
1616
//language ID = U.S. English, char set = Windows, Multilingual
1717
1818
BEGIN
1919
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20
- VALUE "FileVersion", "1.3.0\0"
20
+ VALUE "FileVersion", "1.3.1\0"
2121
VALUE "InternalName", "zlib\0"
2222
VALUE "OriginalFilename", "zlibwapi.dll\0"
2323
VALUE "ProductName", "ZLib.DLL\0"
2424
VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25
- VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
25
+ VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
2626
END
2727
END
2828
BLOCK "VarFileInfo"
2929
BEGIN
3030
VALUE "Translation", 0x0409, 1252
3131
END
3232
END
3333
--- compat/zlib/contrib/vstudio/vc12/zlib.rc
+++ compat/zlib/contrib/vstudio/vc12/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 0, 0
6 PRODUCTVERSION 1, 3, 0, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.0\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc12/zlib.rc
+++ compat/zlib/contrib/vstudio/vc12/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 1, 0
6 PRODUCTVERSION 1, 3, 1, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.1\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc12/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc12/zlibvc.def
@@ -1,9 +1,9 @@
11
LIBRARY
22
; zlib data compression and ZIP file I/O library
33
4
-VERSION 1.3
4
+VERSION 1.3.1
55
66
EXPORTS
77
adler32 @1
88
compress @2
99
crc32 @3
1010
--- compat/zlib/contrib/vstudio/vc12/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc12/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc12/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc12/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3.1
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc14/zlib.rc
+++ compat/zlib/contrib/vstudio/vc14/zlib.rc
@@ -1,11 +1,11 @@
11
#include <windows.h>
22
33
#define IDR_VERSION1 1
44
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5
- FILEVERSION 1, 3, 0, 0
6
- PRODUCTVERSION 1, 3, 0, 0
5
+ FILEVERSION 1, 3, 1, 0
6
+ PRODUCTVERSION 1, 3, 1, 0
77
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
88
FILEFLAGS 0
99
FILEOS VOS_DOS_WINDOWS32
1010
FILETYPE VFT_DLL
1111
FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
1515
BLOCK "040904E4"
1616
//language ID = U.S. English, char set = Windows, Multilingual
1717
1818
BEGIN
1919
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20
- VALUE "FileVersion", "1.3.0\0"
20
+ VALUE "FileVersion", "1.3.1\0"
2121
VALUE "InternalName", "zlib\0"
2222
VALUE "OriginalFilename", "zlibwapi.dll\0"
2323
VALUE "ProductName", "ZLib.DLL\0"
2424
VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25
- VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
25
+ VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
2626
END
2727
END
2828
BLOCK "VarFileInfo"
2929
BEGIN
3030
VALUE "Translation", 0x0409, 1252
3131
END
3232
END
3333
--- compat/zlib/contrib/vstudio/vc14/zlib.rc
+++ compat/zlib/contrib/vstudio/vc14/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 0, 0
6 PRODUCTVERSION 1, 3, 0, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.0\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc14/zlib.rc
+++ compat/zlib/contrib/vstudio/vc14/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 1, 0
6 PRODUCTVERSION 1, 3, 1, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.1\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc14/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc14/zlibvc.def
@@ -1,9 +1,9 @@
11
LIBRARY
22
; zlib data compression and ZIP file I/O library
33
4
-VERSION 1.3
4
+VERSION 1.3.1
55
66
EXPORTS
77
adler32 @1
88
compress @2
99
crc32 @3
1010
--- compat/zlib/contrib/vstudio/vc14/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc14/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc14/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc14/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3.1
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc9/zlib.rc
+++ compat/zlib/contrib/vstudio/vc9/zlib.rc
@@ -1,11 +1,11 @@
11
#include <windows.h>
22
33
#define IDR_VERSION1 1
44
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5
- FILEVERSION 1, 3, 0, 0
6
- PRODUCTVERSION 1, 3, 0, 0
5
+ FILEVERSION 1, 3, 1, 0
6
+ PRODUCTVERSION 1, 3, 1, 0
77
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
88
FILEFLAGS 0
99
FILEOS VOS_DOS_WINDOWS32
1010
FILETYPE VFT_DLL
1111
FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
1515
BLOCK "040904E4"
1616
//language ID = U.S. English, char set = Windows, Multilingual
1717
1818
BEGIN
1919
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20
- VALUE "FileVersion", "1.3.0\0"
20
+ VALUE "FileVersion", "1.3.1\0"
2121
VALUE "InternalName", "zlib\0"
2222
VALUE "OriginalFilename", "zlibwapi.dll\0"
2323
VALUE "ProductName", "ZLib.DLL\0"
2424
VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25
- VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
25
+ VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
2626
END
2727
END
2828
BLOCK "VarFileInfo"
2929
BEGIN
3030
VALUE "Translation", 0x0409, 1252
3131
END
3232
END
3333
--- compat/zlib/contrib/vstudio/vc9/zlib.rc
+++ compat/zlib/contrib/vstudio/vc9/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 0, 0
6 PRODUCTVERSION 1, 3, 0, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.0\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2023 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc9/zlib.rc
+++ compat/zlib/contrib/vstudio/vc9/zlib.rc
@@ -1,11 +1,11 @@
1 #include <windows.h>
2
3 #define IDR_VERSION1 1
4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1, 3, 1, 0
6 PRODUCTVERSION 1, 3, 1, 0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32
10 FILETYPE VFT_DLL
11 FILESUBTYPE 0 // not used
@@ -15,18 +15,18 @@
15 BLOCK "040904E4"
16 //language ID = U.S. English, char set = Windows, Multilingual
17
18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.3.1\0"
21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlibwapi.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0"
24 VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0"
26 END
27 END
28 BLOCK "VarFileInfo"
29 BEGIN
30 VALUE "Translation", 0x0409, 1252
31 END
32 END
33
--- compat/zlib/contrib/vstudio/vc9/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc9/zlibvc.def
@@ -1,9 +1,9 @@
11
LIBRARY
22
; zlib data compression and ZIP file I/O library
33
4
-VERSION 1.3
4
+VERSION 1.3.1
55
66
EXPORTS
77
adler32 @1
88
compress @2
99
crc32 @3
1010
--- compat/zlib/contrib/vstudio/vc9/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc9/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/contrib/vstudio/vc9/zlibvc.def
+++ compat/zlib/contrib/vstudio/vc9/zlibvc.def
@@ -1,9 +1,9 @@
1 LIBRARY
2 ; zlib data compression and ZIP file I/O library
3
4 VERSION 1.3.1
5
6 EXPORTS
7 adler32 @1
8 compress @2
9 crc32 @3
10
--- compat/zlib/deflate.c
+++ compat/zlib/deflate.c
@@ -1,7 +1,7 @@
11
/* deflate.c -- compress data using the deflation algorithm
2
- * Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
2
+ * Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
/*
77
* ALGORITHM
@@ -50,11 +50,11 @@
5050
/* @(#) $Id$ */
5151
5252
#include "deflate.h"
5353
5454
const char deflate_copyright[] =
55
- " deflate 1.3 Copyright 1995-2023 Jean-loup Gailly and Mark Adler ";
55
+ " deflate 1.3.1 Copyright 1995-2024 Jean-loup Gailly and Mark Adler ";
5656
/*
5757
If you use the zlib library in a product, an acknowledgment is welcome
5858
in the documentation of your product. If for some reason you cannot
5959
include such an acknowledgment, I would appreciate that you keep this
6060
copyright string in the executable of your product.
@@ -491,22 +491,28 @@
491491
* Therefore its average symbol length is assured to be less than 31. So
492492
* the compressed data for a dynamic block also cannot overwrite the
493493
* symbols from which it is being constructed.
494494
*/
495495
496
- s->pending_buf = (uchf *) ZALLOC(strm, s->lit_bufsize, 4);
496
+ s->pending_buf = (uchf *) ZALLOC(strm, s->lit_bufsize, LIT_BUFS);
497497
s->pending_buf_size = (ulg)s->lit_bufsize * 4;
498498
499499
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
500500
s->pending_buf == Z_NULL) {
501501
s->status = FINISH_STATE;
502502
strm->msg = ERR_MSG(Z_MEM_ERROR);
503503
deflateEnd (strm);
504504
return Z_MEM_ERROR;
505505
}
506
+#ifdef LIT_MEM
507
+ s->d_buf = (ushf *)(s->pending_buf + (s->lit_bufsize << 1));
508
+ s->l_buf = s->pending_buf + (s->lit_bufsize << 2);
509
+ s->sym_end = s->lit_bufsize - 1;
510
+#else
506511
s->sym_buf = s->pending_buf + s->lit_bufsize;
507512
s->sym_end = (s->lit_bufsize - 1) * 3;
513
+#endif
508514
/* We avoid equality with lit_bufsize*3 because of wraparound at 64K
509515
* on 16 bit machines and because stored blocks are restricted to
510516
* 64K-1 bytes.
511517
*/
512518
@@ -718,13 +724,19 @@
718724
deflate_state *s;
719725
int put;
720726
721727
if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
722728
s = strm->state;
729
+#ifdef LIT_MEM
730
+ if (bits < 0 || bits > 16 ||
731
+ (uchf *)s->d_buf < s->pending_out + ((Buf_size + 7) >> 3))
732
+ return Z_BUF_ERROR;
733
+#else
723734
if (bits < 0 || bits > 16 ||
724735
s->sym_buf < s->pending_out + ((Buf_size + 7) >> 3))
725736
return Z_BUF_ERROR;
737
+#endif
726738
do {
727739
put = Buf_size - s->bi_valid;
728740
if (put > bits)
729741
put = bits;
730742
s->bi_buf |= (ush)((value & ((1 << put) - 1)) << s->bi_valid);
@@ -1292,11 +1304,11 @@
12921304
ds->strm = dest;
12931305
12941306
ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
12951307
ds->prev = (Posf *) ZALLOC(dest, ds->w_size, sizeof(Pos));
12961308
ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1297
- ds->pending_buf = (uchf *) ZALLOC(dest, ds->lit_bufsize, 4);
1309
+ ds->pending_buf = (uchf *) ZALLOC(dest, ds->lit_bufsize, LIT_BUFS);
12981310
12991311
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
13001312
ds->pending_buf == Z_NULL) {
13011313
deflateEnd (dest);
13021314
return Z_MEM_ERROR;
@@ -1303,14 +1315,19 @@
13031315
}
13041316
/* following zmemcpy do not work for 16-bit MSDOS */
13051317
zmemcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(Byte));
13061318
zmemcpy((voidpf)ds->prev, (voidpf)ss->prev, ds->w_size * sizeof(Pos));
13071319
zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
1308
- zmemcpy(ds->pending_buf, ss->pending_buf, (uInt)ds->pending_buf_size);
1320
+ zmemcpy(ds->pending_buf, ss->pending_buf, ds->lit_bufsize * LIT_BUFS);
13091321
13101322
ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf);
1323
+#ifdef LIT_MEM
1324
+ ds->d_buf = (ushf *)(ds->pending_buf + (ds->lit_bufsize << 1));
1325
+ ds->l_buf = ds->pending_buf + (ds->lit_bufsize << 2);
1326
+#else
13111327
ds->sym_buf = ds->pending_buf + ds->lit_bufsize;
1328
+#endif
13121329
13131330
ds->l_desc.dyn_tree = ds->dyn_ltree;
13141331
ds->d_desc.dyn_tree = ds->dyn_dtree;
13151332
ds->bl_desc.dyn_tree = ds->bl_tree;
13161333
@@ -1537,17 +1554,25 @@
15371554
/* ===========================================================================
15381555
* Check that the match at match_start is indeed a match.
15391556
*/
15401557
local void check_match(deflate_state *s, IPos start, IPos match, int length) {
15411558
/* check that the match is indeed a match */
1542
- if (zmemcmp(s->window + match,
1543
- s->window + start, length) != EQUAL) {
1544
- fprintf(stderr, " start %u, match %u, length %d\n",
1545
- start, match, length);
1559
+ Bytef *back = s->window + (int)match, *here = s->window + start;
1560
+ IPos len = length;
1561
+ if (match == (IPos)-1) {
1562
+ /* match starts one byte before the current window -- just compare the
1563
+ subsequent length-1 bytes */
1564
+ back++;
1565
+ here++;
1566
+ len--;
1567
+ }
1568
+ if (zmemcmp(back, here, len) != EQUAL) {
1569
+ fprintf(stderr, " start %u, match %d, length %d\n",
1570
+ start, (int)match, length);
15461571
do {
1547
- fprintf(stderr, "%c%c", s->window[match++], s->window[start++]);
1548
- } while (--length != 0);
1572
+ fprintf(stderr, "(%02x %02x)", *back++, *here++);
1573
+ } while (--len != 0);
15491574
z_error("invalid match");
15501575
}
15511576
if (z_verbose > 1) {
15521577
fprintf(stderr,"\\[%d,%d]", start - match, length);
15531578
do { putc(s->window[start++], stderr); } while (--length != 0);
15541579
--- compat/zlib/deflate.c
+++ compat/zlib/deflate.c
@@ -1,7 +1,7 @@
1 /* deflate.c -- compress data using the deflation algorithm
2 * Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /*
7 * ALGORITHM
@@ -50,11 +50,11 @@
50 /* @(#) $Id$ */
51
52 #include "deflate.h"
53
54 const char deflate_copyright[] =
55 " deflate 1.3 Copyright 1995-2023 Jean-loup Gailly and Mark Adler ";
56 /*
57 If you use the zlib library in a product, an acknowledgment is welcome
58 in the documentation of your product. If for some reason you cannot
59 include such an acknowledgment, I would appreciate that you keep this
60 copyright string in the executable of your product.
@@ -491,22 +491,28 @@
491 * Therefore its average symbol length is assured to be less than 31. So
492 * the compressed data for a dynamic block also cannot overwrite the
493 * symbols from which it is being constructed.
494 */
495
496 s->pending_buf = (uchf *) ZALLOC(strm, s->lit_bufsize, 4);
497 s->pending_buf_size = (ulg)s->lit_bufsize * 4;
498
499 if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
500 s->pending_buf == Z_NULL) {
501 s->status = FINISH_STATE;
502 strm->msg = ERR_MSG(Z_MEM_ERROR);
503 deflateEnd (strm);
504 return Z_MEM_ERROR;
505 }
 
 
 
 
 
506 s->sym_buf = s->pending_buf + s->lit_bufsize;
507 s->sym_end = (s->lit_bufsize - 1) * 3;
 
508 /* We avoid equality with lit_bufsize*3 because of wraparound at 64K
509 * on 16 bit machines and because stored blocks are restricted to
510 * 64K-1 bytes.
511 */
512
@@ -718,13 +724,19 @@
718 deflate_state *s;
719 int put;
720
721 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
722 s = strm->state;
 
 
 
 
 
723 if (bits < 0 || bits > 16 ||
724 s->sym_buf < s->pending_out + ((Buf_size + 7) >> 3))
725 return Z_BUF_ERROR;
 
726 do {
727 put = Buf_size - s->bi_valid;
728 if (put > bits)
729 put = bits;
730 s->bi_buf |= (ush)((value & ((1 << put) - 1)) << s->bi_valid);
@@ -1292,11 +1304,11 @@
1292 ds->strm = dest;
1293
1294 ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
1295 ds->prev = (Posf *) ZALLOC(dest, ds->w_size, sizeof(Pos));
1296 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1297 ds->pending_buf = (uchf *) ZALLOC(dest, ds->lit_bufsize, 4);
1298
1299 if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
1300 ds->pending_buf == Z_NULL) {
1301 deflateEnd (dest);
1302 return Z_MEM_ERROR;
@@ -1303,14 +1315,19 @@
1303 }
1304 /* following zmemcpy do not work for 16-bit MSDOS */
1305 zmemcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(Byte));
1306 zmemcpy((voidpf)ds->prev, (voidpf)ss->prev, ds->w_size * sizeof(Pos));
1307 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
1308 zmemcpy(ds->pending_buf, ss->pending_buf, (uInt)ds->pending_buf_size);
1309
1310 ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf);
 
 
 
 
1311 ds->sym_buf = ds->pending_buf + ds->lit_bufsize;
 
1312
1313 ds->l_desc.dyn_tree = ds->dyn_ltree;
1314 ds->d_desc.dyn_tree = ds->dyn_dtree;
1315 ds->bl_desc.dyn_tree = ds->bl_tree;
1316
@@ -1537,17 +1554,25 @@
1537 /* ===========================================================================
1538 * Check that the match at match_start is indeed a match.
1539 */
1540 local void check_match(deflate_state *s, IPos start, IPos match, int length) {
1541 /* check that the match is indeed a match */
1542 if (zmemcmp(s->window + match,
1543 s->window + start, length) != EQUAL) {
1544 fprintf(stderr, " start %u, match %u, length %d\n",
1545 start, match, length);
 
 
 
 
 
 
 
 
1546 do {
1547 fprintf(stderr, "%c%c", s->window[match++], s->window[start++]);
1548 } while (--length != 0);
1549 z_error("invalid match");
1550 }
1551 if (z_verbose > 1) {
1552 fprintf(stderr,"\\[%d,%d]", start - match, length);
1553 do { putc(s->window[start++], stderr); } while (--length != 0);
1554
--- compat/zlib/deflate.c
+++ compat/zlib/deflate.c
@@ -1,7 +1,7 @@
1 /* deflate.c -- compress data using the deflation algorithm
2 * Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /*
7 * ALGORITHM
@@ -50,11 +50,11 @@
50 /* @(#) $Id$ */
51
52 #include "deflate.h"
53
54 const char deflate_copyright[] =
55 " deflate 1.3.1 Copyright 1995-2024 Jean-loup Gailly and Mark Adler ";
56 /*
57 If you use the zlib library in a product, an acknowledgment is welcome
58 in the documentation of your product. If for some reason you cannot
59 include such an acknowledgment, I would appreciate that you keep this
60 copyright string in the executable of your product.
@@ -491,22 +491,28 @@
491 * Therefore its average symbol length is assured to be less than 31. So
492 * the compressed data for a dynamic block also cannot overwrite the
493 * symbols from which it is being constructed.
494 */
495
496 s->pending_buf = (uchf *) ZALLOC(strm, s->lit_bufsize, LIT_BUFS);
497 s->pending_buf_size = (ulg)s->lit_bufsize * 4;
498
499 if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
500 s->pending_buf == Z_NULL) {
501 s->status = FINISH_STATE;
502 strm->msg = ERR_MSG(Z_MEM_ERROR);
503 deflateEnd (strm);
504 return Z_MEM_ERROR;
505 }
506 #ifdef LIT_MEM
507 s->d_buf = (ushf *)(s->pending_buf + (s->lit_bufsize << 1));
508 s->l_buf = s->pending_buf + (s->lit_bufsize << 2);
509 s->sym_end = s->lit_bufsize - 1;
510 #else
511 s->sym_buf = s->pending_buf + s->lit_bufsize;
512 s->sym_end = (s->lit_bufsize - 1) * 3;
513 #endif
514 /* We avoid equality with lit_bufsize*3 because of wraparound at 64K
515 * on 16 bit machines and because stored blocks are restricted to
516 * 64K-1 bytes.
517 */
518
@@ -718,13 +724,19 @@
724 deflate_state *s;
725 int put;
726
727 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
728 s = strm->state;
729 #ifdef LIT_MEM
730 if (bits < 0 || bits > 16 ||
731 (uchf *)s->d_buf < s->pending_out + ((Buf_size + 7) >> 3))
732 return Z_BUF_ERROR;
733 #else
734 if (bits < 0 || bits > 16 ||
735 s->sym_buf < s->pending_out + ((Buf_size + 7) >> 3))
736 return Z_BUF_ERROR;
737 #endif
738 do {
739 put = Buf_size - s->bi_valid;
740 if (put > bits)
741 put = bits;
742 s->bi_buf |= (ush)((value & ((1 << put) - 1)) << s->bi_valid);
@@ -1292,11 +1304,11 @@
1304 ds->strm = dest;
1305
1306 ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
1307 ds->prev = (Posf *) ZALLOC(dest, ds->w_size, sizeof(Pos));
1308 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1309 ds->pending_buf = (uchf *) ZALLOC(dest, ds->lit_bufsize, LIT_BUFS);
1310
1311 if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
1312 ds->pending_buf == Z_NULL) {
1313 deflateEnd (dest);
1314 return Z_MEM_ERROR;
@@ -1303,14 +1315,19 @@
1315 }
1316 /* following zmemcpy do not work for 16-bit MSDOS */
1317 zmemcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(Byte));
1318 zmemcpy((voidpf)ds->prev, (voidpf)ss->prev, ds->w_size * sizeof(Pos));
1319 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
1320 zmemcpy(ds->pending_buf, ss->pending_buf, ds->lit_bufsize * LIT_BUFS);
1321
1322 ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf);
1323 #ifdef LIT_MEM
1324 ds->d_buf = (ushf *)(ds->pending_buf + (ds->lit_bufsize << 1));
1325 ds->l_buf = ds->pending_buf + (ds->lit_bufsize << 2);
1326 #else
1327 ds->sym_buf = ds->pending_buf + ds->lit_bufsize;
1328 #endif
1329
1330 ds->l_desc.dyn_tree = ds->dyn_ltree;
1331 ds->d_desc.dyn_tree = ds->dyn_dtree;
1332 ds->bl_desc.dyn_tree = ds->bl_tree;
1333
@@ -1537,17 +1554,25 @@
1554 /* ===========================================================================
1555 * Check that the match at match_start is indeed a match.
1556 */
1557 local void check_match(deflate_state *s, IPos start, IPos match, int length) {
1558 /* check that the match is indeed a match */
1559 Bytef *back = s->window + (int)match, *here = s->window + start;
1560 IPos len = length;
1561 if (match == (IPos)-1) {
1562 /* match starts one byte before the current window -- just compare the
1563 subsequent length-1 bytes */
1564 back++;
1565 here++;
1566 len--;
1567 }
1568 if (zmemcmp(back, here, len) != EQUAL) {
1569 fprintf(stderr, " start %u, match %d, length %d\n",
1570 start, (int)match, length);
1571 do {
1572 fprintf(stderr, "(%02x %02x)", *back++, *here++);
1573 } while (--len != 0);
1574 z_error("invalid match");
1575 }
1576 if (z_verbose > 1) {
1577 fprintf(stderr,"\\[%d,%d]", start - match, length);
1578 do { putc(s->window[start++], stderr); } while (--length != 0);
1579
--- compat/zlib/deflate.h
+++ compat/zlib/deflate.h
@@ -1,7 +1,7 @@
11
/* deflate.h -- internal compression state
2
- * Copyright (C) 1995-2018 Jean-loup Gailly
2
+ * Copyright (C) 1995-2024 Jean-loup Gailly
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
/* WARNING: this file should *not* be used by applications. It is
77
part of the implementation of the compression library and is
@@ -20,10 +20,14 @@
2020
the crc code when it is not needed. For shared libraries, gzip encoding
2121
should be left enabled. */
2222
#ifndef NO_GZIP
2323
# define GZIP
2424
#endif
25
+
26
+/* define LIT_MEM to slightly increase the speed of deflate (order 1% to 2%) at
27
+ the cost of a larger memory footprint */
28
+/* #define LIT_MEM */
2529
2630
/* ===========================================================================
2731
* Internal compression state.
2832
*/
2933
@@ -215,11 +219,18 @@
215219
216220
uch depth[2*L_CODES+1];
217221
/* Depth of each subtree used as tie breaker for trees of equal frequency
218222
*/
219223
224
+#ifdef LIT_MEM
225
+# define LIT_BUFS 5
226
+ ushf *d_buf; /* buffer for distances */
227
+ uchf *l_buf; /* buffer for literals/lengths */
228
+#else
229
+# define LIT_BUFS 4
220230
uchf *sym_buf; /* buffer for distances and literals/lengths */
231
+#endif
221232
222233
uInt lit_bufsize;
223234
/* Size of match buffer for literals/lengths. There are 4 reasons for
224235
* limiting lit_bufsize to 64K:
225236
* - frequencies can be kept in 16 bit counters
@@ -237,11 +248,11 @@
237248
* fast adaptation but have of course the overhead of transmitting
238249
* trees more frequently.
239250
* - I can't count above 4
240251
*/
241252
242
- uInt sym_next; /* running index in sym_buf */
253
+ uInt sym_next; /* running index in symbol buffer */
243254
uInt sym_end; /* symbol table full when sym_next reaches this */
244255
245256
ulg opt_len; /* bit length of current block with optimal trees */
246257
ulg static_len; /* bit length of current block with static trees */
247258
uInt matches; /* number of string matches in current block */
@@ -316,10 +327,29 @@
316327
#else
317328
extern const uch ZLIB_INTERNAL _length_code[];
318329
extern const uch ZLIB_INTERNAL _dist_code[];
319330
#endif
320331
332
+#ifdef LIT_MEM
333
+# define _tr_tally_lit(s, c, flush) \
334
+ { uch cc = (c); \
335
+ s->d_buf[s->sym_next] = 0; \
336
+ s->l_buf[s->sym_next++] = cc; \
337
+ s->dyn_ltree[cc].Freq++; \
338
+ flush = (s->sym_next == s->sym_end); \
339
+ }
340
+# define _tr_tally_dist(s, distance, length, flush) \
341
+ { uch len = (uch)(length); \
342
+ ush dist = (ush)(distance); \
343
+ s->d_buf[s->sym_next] = dist; \
344
+ s->l_buf[s->sym_next++] = len; \
345
+ dist--; \
346
+ s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
347
+ s->dyn_dtree[d_code(dist)].Freq++; \
348
+ flush = (s->sym_next == s->sym_end); \
349
+ }
350
+#else
321351
# define _tr_tally_lit(s, c, flush) \
322352
{ uch cc = (c); \
323353
s->sym_buf[s->sym_next++] = 0; \
324354
s->sym_buf[s->sym_next++] = 0; \
325355
s->sym_buf[s->sym_next++] = cc; \
@@ -335,12 +365,13 @@
335365
dist--; \
336366
s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337367
s->dyn_dtree[d_code(dist)].Freq++; \
338368
flush = (s->sym_next == s->sym_end); \
339369
}
370
+#endif
340371
#else
341372
# define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
342373
# define _tr_tally_dist(s, distance, length, flush) \
343374
flush = _tr_tally(s, distance, length)
344375
#endif
345376
346377
#endif /* DEFLATE_H */
347378
--- compat/zlib/deflate.h
+++ compat/zlib/deflate.h
@@ -1,7 +1,7 @@
1 /* deflate.h -- internal compression state
2 * Copyright (C) 1995-2018 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
@@ -20,10 +20,14 @@
20 the crc code when it is not needed. For shared libraries, gzip encoding
21 should be left enabled. */
22 #ifndef NO_GZIP
23 # define GZIP
24 #endif
 
 
 
 
25
26 /* ===========================================================================
27 * Internal compression state.
28 */
29
@@ -215,11 +219,18 @@
215
216 uch depth[2*L_CODES+1];
217 /* Depth of each subtree used as tie breaker for trees of equal frequency
218 */
219
 
 
 
 
 
 
220 uchf *sym_buf; /* buffer for distances and literals/lengths */
 
221
222 uInt lit_bufsize;
223 /* Size of match buffer for literals/lengths. There are 4 reasons for
224 * limiting lit_bufsize to 64K:
225 * - frequencies can be kept in 16 bit counters
@@ -237,11 +248,11 @@
237 * fast adaptation but have of course the overhead of transmitting
238 * trees more frequently.
239 * - I can't count above 4
240 */
241
242 uInt sym_next; /* running index in sym_buf */
243 uInt sym_end; /* symbol table full when sym_next reaches this */
244
245 ulg opt_len; /* bit length of current block with optimal trees */
246 ulg static_len; /* bit length of current block with static trees */
247 uInt matches; /* number of string matches in current block */
@@ -316,10 +327,29 @@
316 #else
317 extern const uch ZLIB_INTERNAL _length_code[];
318 extern const uch ZLIB_INTERNAL _dist_code[];
319 #endif
320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321 # define _tr_tally_lit(s, c, flush) \
322 { uch cc = (c); \
323 s->sym_buf[s->sym_next++] = 0; \
324 s->sym_buf[s->sym_next++] = 0; \
325 s->sym_buf[s->sym_next++] = cc; \
@@ -335,12 +365,13 @@
335 dist--; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337 s->dyn_dtree[d_code(dist)].Freq++; \
338 flush = (s->sym_next == s->sym_end); \
339 }
 
340 #else
341 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
342 # define _tr_tally_dist(s, distance, length, flush) \
343 flush = _tr_tally(s, distance, length)
344 #endif
345
346 #endif /* DEFLATE_H */
347
--- compat/zlib/deflate.h
+++ compat/zlib/deflate.h
@@ -1,7 +1,7 @@
1 /* deflate.h -- internal compression state
2 * Copyright (C) 1995-2024 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
@@ -20,10 +20,14 @@
20 the crc code when it is not needed. For shared libraries, gzip encoding
21 should be left enabled. */
22 #ifndef NO_GZIP
23 # define GZIP
24 #endif
25
26 /* define LIT_MEM to slightly increase the speed of deflate (order 1% to 2%) at
27 the cost of a larger memory footprint */
28 /* #define LIT_MEM */
29
30 /* ===========================================================================
31 * Internal compression state.
32 */
33
@@ -215,11 +219,18 @@
219
220 uch depth[2*L_CODES+1];
221 /* Depth of each subtree used as tie breaker for trees of equal frequency
222 */
223
224 #ifdef LIT_MEM
225 # define LIT_BUFS 5
226 ushf *d_buf; /* buffer for distances */
227 uchf *l_buf; /* buffer for literals/lengths */
228 #else
229 # define LIT_BUFS 4
230 uchf *sym_buf; /* buffer for distances and literals/lengths */
231 #endif
232
233 uInt lit_bufsize;
234 /* Size of match buffer for literals/lengths. There are 4 reasons for
235 * limiting lit_bufsize to 64K:
236 * - frequencies can be kept in 16 bit counters
@@ -237,11 +248,11 @@
248 * fast adaptation but have of course the overhead of transmitting
249 * trees more frequently.
250 * - I can't count above 4
251 */
252
253 uInt sym_next; /* running index in symbol buffer */
254 uInt sym_end; /* symbol table full when sym_next reaches this */
255
256 ulg opt_len; /* bit length of current block with optimal trees */
257 ulg static_len; /* bit length of current block with static trees */
258 uInt matches; /* number of string matches in current block */
@@ -316,10 +327,29 @@
327 #else
328 extern const uch ZLIB_INTERNAL _length_code[];
329 extern const uch ZLIB_INTERNAL _dist_code[];
330 #endif
331
332 #ifdef LIT_MEM
333 # define _tr_tally_lit(s, c, flush) \
334 { uch cc = (c); \
335 s->d_buf[s->sym_next] = 0; \
336 s->l_buf[s->sym_next++] = cc; \
337 s->dyn_ltree[cc].Freq++; \
338 flush = (s->sym_next == s->sym_end); \
339 }
340 # define _tr_tally_dist(s, distance, length, flush) \
341 { uch len = (uch)(length); \
342 ush dist = (ush)(distance); \
343 s->d_buf[s->sym_next] = dist; \
344 s->l_buf[s->sym_next++] = len; \
345 dist--; \
346 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
347 s->dyn_dtree[d_code(dist)].Freq++; \
348 flush = (s->sym_next == s->sym_end); \
349 }
350 #else
351 # define _tr_tally_lit(s, c, flush) \
352 { uch cc = (c); \
353 s->sym_buf[s->sym_next++] = 0; \
354 s->sym_buf[s->sym_next++] = 0; \
355 s->sym_buf[s->sym_next++] = cc; \
@@ -335,12 +365,13 @@
365 dist--; \
366 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
367 s->dyn_dtree[d_code(dist)].Freq++; \
368 flush = (s->sym_next == s->sym_end); \
369 }
370 #endif
371 #else
372 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
373 # define _tr_tally_dist(s, distance, length, flush) \
374 flush = _tr_tally(s, distance, length)
375 #endif
376
377 #endif /* DEFLATE_H */
378
--- compat/zlib/examples/gzlog.c
+++ compat/zlib/examples/gzlog.c
@@ -210,12 +210,12 @@
210210
Recovery procedure:
211211
- If not a replace recovery, read in the foo.add file, and provide that data
212212
to the appropriate recovery below. If there is no foo.add file, provide
213213
a zero data length to the recovery. In that case, the append recovery
214214
restores the foo.gz to the previous compressed + uncompressed data state.
215
- For the the compress recovery, a missing foo.add file results in foo.gz
216
- being restored to the previous compressed-only data state.
215
+ For the compress recovery, a missing foo.add file results in foo.gz being
216
+ restored to the previous compressed-only data state.
217217
- Append recovery:
218218
- Pick up append at + step above
219219
- Compress recovery:
220220
- Pick up compress at * step above
221221
- Replace recovery:
222222
--- compat/zlib/examples/gzlog.c
+++ compat/zlib/examples/gzlog.c
@@ -210,12 +210,12 @@
210 Recovery procedure:
211 - If not a replace recovery, read in the foo.add file, and provide that data
212 to the appropriate recovery below. If there is no foo.add file, provide
213 a zero data length to the recovery. In that case, the append recovery
214 restores the foo.gz to the previous compressed + uncompressed data state.
215 For the the compress recovery, a missing foo.add file results in foo.gz
216 being restored to the previous compressed-only data state.
217 - Append recovery:
218 - Pick up append at + step above
219 - Compress recovery:
220 - Pick up compress at * step above
221 - Replace recovery:
222
--- compat/zlib/examples/gzlog.c
+++ compat/zlib/examples/gzlog.c
@@ -210,12 +210,12 @@
210 Recovery procedure:
211 - If not a replace recovery, read in the foo.add file, and provide that data
212 to the appropriate recovery below. If there is no foo.add file, provide
213 a zero data length to the recovery. In that case, the append recovery
214 restores the foo.gz to the previous compressed + uncompressed data state.
215 For the compress recovery, a missing foo.add file results in foo.gz being
216 restored to the previous compressed-only data state.
217 - Append recovery:
218 - Pick up append at + step above
219 - Compress recovery:
220 - Pick up compress at * step above
221 - Replace recovery:
222
--- compat/zlib/examples/zran.c
+++ compat/zlib/examples/zran.c
@@ -265,11 +265,11 @@
265265
k = 8; // now at a byte boundary
266266
*++in = value;
267267
}
268268
}
269269
270
-// Insert enough bits in the form of empty deflate blocks in front of the the
270
+// Insert enough bits in the form of empty deflate blocks in front of the
271271
// low bits bits of value, in order to bring the sequence to a byte boundary.
272272
// Then feed that to inflate(). This does what inflatePrime() does, except that
273273
// a negative value of bits is not supported. bits must be in 0..16. If the
274274
// arguments are invalid, Z_STREAM_ERROR is returned. Otherwise the return
275275
// value from inflate() is returned.
276276
--- compat/zlib/examples/zran.c
+++ compat/zlib/examples/zran.c
@@ -265,11 +265,11 @@
265 k = 8; // now at a byte boundary
266 *++in = value;
267 }
268 }
269
270 // Insert enough bits in the form of empty deflate blocks in front of the the
271 // low bits bits of value, in order to bring the sequence to a byte boundary.
272 // Then feed that to inflate(). This does what inflatePrime() does, except that
273 // a negative value of bits is not supported. bits must be in 0..16. If the
274 // arguments are invalid, Z_STREAM_ERROR is returned. Otherwise the return
275 // value from inflate() is returned.
276
--- compat/zlib/examples/zran.c
+++ compat/zlib/examples/zran.c
@@ -265,11 +265,11 @@
265 k = 8; // now at a byte boundary
266 *++in = value;
267 }
268 }
269
270 // Insert enough bits in the form of empty deflate blocks in front of the
271 // low bits bits of value, in order to bring the sequence to a byte boundary.
272 // Then feed that to inflate(). This does what inflatePrime() does, except that
273 // a negative value of bits is not supported. bits must be in 0..16. If the
274 // arguments are invalid, Z_STREAM_ERROR is returned. Otherwise the return
275 // value from inflate() is returned.
276
--- compat/zlib/gzguts.h
+++ compat/zlib/gzguts.h
@@ -1,7 +1,7 @@
11
/* gzguts.h -- zlib internal header definitions for gz* operations
2
- * Copyright (C) 2004-2019 Mark Adler
2
+ * Copyright (C) 2004-2024 Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
#ifdef _LARGEFILE64_SOURCE
77
# ifndef _LARGEFILE_SOURCE
@@ -208,11 +208,7 @@
208208
#endif
209209
210210
/* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
211211
value -- needed when comparing unsigned to z_off64_t, which is signed
212212
(possible z_off64_t types off_t, off64_t, and long are all signed) */
213
-#ifdef INT_MAX
214
-# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
215
-#else
216213
unsigned ZLIB_INTERNAL gz_intmax(void);
217
-# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
218
-#endif
214
+#define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
219215
--- compat/zlib/gzguts.h
+++ compat/zlib/gzguts.h
@@ -1,7 +1,7 @@
1 /* gzguts.h -- zlib internal header definitions for gz* operations
2 * Copyright (C) 2004-2019 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #ifdef _LARGEFILE64_SOURCE
7 # ifndef _LARGEFILE_SOURCE
@@ -208,11 +208,7 @@
208 #endif
209
210 /* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
211 value -- needed when comparing unsigned to z_off64_t, which is signed
212 (possible z_off64_t types off_t, off64_t, and long are all signed) */
213 #ifdef INT_MAX
214 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
215 #else
216 unsigned ZLIB_INTERNAL gz_intmax(void);
217 # define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
218 #endif
219
--- compat/zlib/gzguts.h
+++ compat/zlib/gzguts.h
@@ -1,7 +1,7 @@
1 /* gzguts.h -- zlib internal header definitions for gz* operations
2 * Copyright (C) 2004-2024 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #ifdef _LARGEFILE64_SOURCE
7 # ifndef _LARGEFILE_SOURCE
@@ -208,11 +208,7 @@
208 #endif
209
210 /* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
211 value -- needed when comparing unsigned to z_off64_t, which is signed
212 (possible z_off64_t types off_t, off64_t, and long are all signed) */
 
 
 
213 unsigned ZLIB_INTERNAL gz_intmax(void);
214 #define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
 
215
--- compat/zlib/gzlib.c
+++ compat/zlib/gzlib.c
@@ -1,7 +1,7 @@
11
/* gzlib.c -- zlib functions common to reading and writing gzip files
2
- * Copyright (C) 2004-2019 Mark Adler
2
+ * Copyright (C) 2004-2024 Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
#include "gzguts.h"
77
@@ -561,22 +561,22 @@
561561
strcat(state->msg, ": ");
562562
strcat(state->msg, msg);
563563
#endif
564564
}
565565
566
-#ifndef INT_MAX
567566
/* portably return maximum value for an int (when limits.h presumed not
568567
available) -- we need to do this to cover cases where 2's complement not
569568
used, since C standard permits 1's complement and sign-bit representations,
570569
otherwise we could just use ((unsigned)-1) >> 1 */
571570
unsigned ZLIB_INTERNAL gz_intmax(void) {
572
- unsigned p, q;
573
-
574
- p = 1;
571
+#ifdef INT_MAX
572
+ return INT_MAX;
573
+#else
574
+ unsigned p = 1, q;
575575
do {
576576
q = p;
577577
p <<= 1;
578578
p++;
579579
} while (p > q);
580580
return q >> 1;
581
-}
582581
#endif
582
+}
583583
--- compat/zlib/gzlib.c
+++ compat/zlib/gzlib.c
@@ -1,7 +1,7 @@
1 /* gzlib.c -- zlib functions common to reading and writing gzip files
2 * Copyright (C) 2004-2019 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #include "gzguts.h"
7
@@ -561,22 +561,22 @@
561 strcat(state->msg, ": ");
562 strcat(state->msg, msg);
563 #endif
564 }
565
566 #ifndef INT_MAX
567 /* portably return maximum value for an int (when limits.h presumed not
568 available) -- we need to do this to cover cases where 2's complement not
569 used, since C standard permits 1's complement and sign-bit representations,
570 otherwise we could just use ((unsigned)-1) >> 1 */
571 unsigned ZLIB_INTERNAL gz_intmax(void) {
572 unsigned p, q;
573
574 p = 1;
 
575 do {
576 q = p;
577 p <<= 1;
578 p++;
579 } while (p > q);
580 return q >> 1;
581 }
582 #endif
 
583
--- compat/zlib/gzlib.c
+++ compat/zlib/gzlib.c
@@ -1,7 +1,7 @@
1 /* gzlib.c -- zlib functions common to reading and writing gzip files
2 * Copyright (C) 2004-2024 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #include "gzguts.h"
7
@@ -561,22 +561,22 @@
561 strcat(state->msg, ": ");
562 strcat(state->msg, msg);
563 #endif
564 }
565
 
566 /* portably return maximum value for an int (when limits.h presumed not
567 available) -- we need to do this to cover cases where 2's complement not
568 used, since C standard permits 1's complement and sign-bit representations,
569 otherwise we could just use ((unsigned)-1) >> 1 */
570 unsigned ZLIB_INTERNAL gz_intmax(void) {
571 #ifdef INT_MAX
572 return INT_MAX;
573 #else
574 unsigned p = 1, q;
575 do {
576 q = p;
577 p <<= 1;
578 p++;
579 } while (p > q);
580 return q >> 1;
 
581 #endif
582 }
583
--- compat/zlib/inflate.c
+++ compat/zlib/inflate.c
@@ -1385,11 +1385,11 @@
13851385
if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
13861386
13871387
/* if first time, start search in bit buffer */
13881388
if (state->mode != SYNC) {
13891389
state->mode = SYNC;
1390
- state->hold <<= state->bits & 7;
1390
+ state->hold >>= state->bits & 7;
13911391
state->bits -= state->bits & 7;
13921392
len = 0;
13931393
while (state->bits >= 8) {
13941394
buf[len++] = (unsigned char)(state->hold);
13951395
state->hold >>= 8;
13961396
--- compat/zlib/inflate.c
+++ compat/zlib/inflate.c
@@ -1385,11 +1385,11 @@
1385 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1386
1387 /* if first time, start search in bit buffer */
1388 if (state->mode != SYNC) {
1389 state->mode = SYNC;
1390 state->hold <<= state->bits & 7;
1391 state->bits -= state->bits & 7;
1392 len = 0;
1393 while (state->bits >= 8) {
1394 buf[len++] = (unsigned char)(state->hold);
1395 state->hold >>= 8;
1396
--- compat/zlib/inflate.c
+++ compat/zlib/inflate.c
@@ -1385,11 +1385,11 @@
1385 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
1386
1387 /* if first time, start search in bit buffer */
1388 if (state->mode != SYNC) {
1389 state->mode = SYNC;
1390 state->hold >>= state->bits & 7;
1391 state->bits -= state->bits & 7;
1392 len = 0;
1393 while (state->bits >= 8) {
1394 buf[len++] = (unsigned char)(state->hold);
1395 state->hold >>= 8;
1396
--- compat/zlib/inftrees.c
+++ compat/zlib/inftrees.c
@@ -1,17 +1,17 @@
11
/* inftrees.c -- generate Huffman trees for efficient decoding
2
- * Copyright (C) 1995-2023 Mark Adler
2
+ * Copyright (C) 1995-2024 Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
#include "zutil.h"
77
#include "inftrees.h"
88
99
#define MAXBITS 15
1010
1111
const char inflate_copyright[] =
12
- " inflate 1.3 Copyright 1995-2023 Mark Adler ";
12
+ " inflate 1.3.1 Copyright 1995-2024 Mark Adler ";
1313
/*
1414
If you use the zlib library in a product, an acknowledgment is welcome
1515
in the documentation of your product. If for some reason you cannot
1616
include such an acknowledgment, I would appreciate that you keep this
1717
copyright string in the executable of your product.
@@ -55,11 +55,11 @@
5555
static const unsigned short lbase[31] = { /* Length codes 257..285 base */
5656
3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
5757
35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
5858
static const unsigned short lext[31] = { /* Length codes 257..285 extra */
5959
16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
60
- 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 198, 203};
60
+ 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 203, 77};
6161
static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
6262
1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
6363
257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
6464
8193, 12289, 16385, 24577, 0, 0};
6565
static const unsigned short dext[32] = { /* Distance codes 0..29 extra */
6666
--- compat/zlib/inftrees.c
+++ compat/zlib/inftrees.c
@@ -1,17 +1,17 @@
1 /* inftrees.c -- generate Huffman trees for efficient decoding
2 * Copyright (C) 1995-2023 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #include "zutil.h"
7 #include "inftrees.h"
8
9 #define MAXBITS 15
10
11 const char inflate_copyright[] =
12 " inflate 1.3 Copyright 1995-2023 Mark Adler ";
13 /*
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
16 include such an acknowledgment, I would appreciate that you keep this
17 copyright string in the executable of your product.
@@ -55,11 +55,11 @@
55 static const unsigned short lbase[31] = { /* Length codes 257..285 base */
56 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
57 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
58 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
59 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
60 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 198, 203};
61 static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
62 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
63 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
64 8193, 12289, 16385, 24577, 0, 0};
65 static const unsigned short dext[32] = { /* Distance codes 0..29 extra */
66
--- compat/zlib/inftrees.c
+++ compat/zlib/inftrees.c
@@ -1,17 +1,17 @@
1 /* inftrees.c -- generate Huffman trees for efficient decoding
2 * Copyright (C) 1995-2024 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 #include "zutil.h"
7 #include "inftrees.h"
8
9 #define MAXBITS 15
10
11 const char inflate_copyright[] =
12 " inflate 1.3.1 Copyright 1995-2024 Mark Adler ";
13 /*
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
16 include such an acknowledgment, I would appreciate that you keep this
17 copyright string in the executable of your product.
@@ -55,11 +55,11 @@
55 static const unsigned short lbase[31] = { /* Length codes 257..285 base */
56 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
57 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
58 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
59 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
60 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 203, 77};
61 static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
62 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
63 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
64 8193, 12289, 16385, 24577, 0, 0};
65 static const unsigned short dext[32] = { /* Distance codes 0..29 extra */
66
--- compat/zlib/inftrees.h
+++ compat/zlib/inftrees.h
@@ -39,12 +39,12 @@
3939
1444, which is the sum of 852 for literal/length codes and 592 for distance
4040
codes. These values were found by exhaustive searches using the program
4141
examples/enough.c found in the zlib distribution. The arguments to that
4242
program are the number of symbols, the initial root table size, and the
4343
maximum bit length of a code. "enough 286 9 15" for literal/length codes
44
- returns returns 852, and "enough 30 6 15" for distance codes returns 592.
45
- The initial root table size (9 or 6) is found in the fifth argument of the
44
+ returns 852, and "enough 30 6 15" for distance codes returns 592. The
45
+ initial root table size (9 or 6) is found in the fifth argument of the
4646
inflate_table() calls in inflate.c and infback.c. If the root table size is
4747
changed, then these maximum sizes would be need to be recalculated and
4848
updated. */
4949
#define ENOUGH_LENS 852
5050
#define ENOUGH_DISTS 592
5151
--- compat/zlib/inftrees.h
+++ compat/zlib/inftrees.h
@@ -39,12 +39,12 @@
39 1444, which is the sum of 852 for literal/length codes and 592 for distance
40 codes. These values were found by exhaustive searches using the program
41 examples/enough.c found in the zlib distribution. The arguments to that
42 program are the number of symbols, the initial root table size, and the
43 maximum bit length of a code. "enough 286 9 15" for literal/length codes
44 returns returns 852, and "enough 30 6 15" for distance codes returns 592.
45 The initial root table size (9 or 6) is found in the fifth argument of the
46 inflate_table() calls in inflate.c and infback.c. If the root table size is
47 changed, then these maximum sizes would be need to be recalculated and
48 updated. */
49 #define ENOUGH_LENS 852
50 #define ENOUGH_DISTS 592
51
--- compat/zlib/inftrees.h
+++ compat/zlib/inftrees.h
@@ -39,12 +39,12 @@
39 1444, which is the sum of 852 for literal/length codes and 592 for distance
40 codes. These values were found by exhaustive searches using the program
41 examples/enough.c found in the zlib distribution. The arguments to that
42 program are the number of symbols, the initial root table size, and the
43 maximum bit length of a code. "enough 286 9 15" for literal/length codes
44 returns 852, and "enough 30 6 15" for distance codes returns 592. The
45 initial root table size (9 or 6) is found in the fifth argument of the
46 inflate_table() calls in inflate.c and infback.c. If the root table size is
47 changed, then these maximum sizes would be need to be recalculated and
48 updated. */
49 #define ENOUGH_LENS 852
50 #define ENOUGH_DISTS 592
51
--- compat/zlib/old/visual-basic.txt
+++ compat/zlib/old/visual-basic.txt
@@ -113,11 +113,11 @@
113113
SUCCESS Then
114114
lngpvtPcnSml = (1# - (lngCprSiz / lngOriSiz)) * 100
115115
ReDim Preserve bytaryCpr(lngCprSiz - 1)
116116
Open strCprPth For Binary Access Write As #1
117117
Put #1, , bytaryCpr()
118
- Put #1, , lngOriSiz 'Add the the original size value to the end
118
+ Put #1, , lngOriSiz 'Add the original size value to the end
119119
(last 4 bytes)
120120
Close #1
121121
Else
122122
MsgBox "Compression error"
123123
End If
124124
--- compat/zlib/old/visual-basic.txt
+++ compat/zlib/old/visual-basic.txt
@@ -113,11 +113,11 @@
113 SUCCESS Then
114 lngpvtPcnSml = (1# - (lngCprSiz / lngOriSiz)) * 100
115 ReDim Preserve bytaryCpr(lngCprSiz - 1)
116 Open strCprPth For Binary Access Write As #1
117 Put #1, , bytaryCpr()
118 Put #1, , lngOriSiz 'Add the the original size value to the end
119 (last 4 bytes)
120 Close #1
121 Else
122 MsgBox "Compression error"
123 End If
124
--- compat/zlib/old/visual-basic.txt
+++ compat/zlib/old/visual-basic.txt
@@ -113,11 +113,11 @@
113 SUCCESS Then
114 lngpvtPcnSml = (1# - (lngCprSiz / lngOriSiz)) * 100
115 ReDim Preserve bytaryCpr(lngCprSiz - 1)
116 Open strCprPth For Binary Access Write As #1
117 Put #1, , bytaryCpr()
118 Put #1, , lngOriSiz 'Add the original size value to the end
119 (last 4 bytes)
120 Close #1
121 Else
122 MsgBox "Compression error"
123 End If
124
--- compat/zlib/os400/README400
+++ compat/zlib/os400/README400
@@ -1,6 +1,6 @@
1
- ZLIB version 1.3.0 for OS/400 installation instructions
1
+ ZLIB version 1.3.1 for OS/400 installation instructions
22
33
1) Download and unpack the zlib tarball to some IFS directory.
44
(i.e.: /path/to/the/zlib/ifs/source/directory)
55
66
If the installed IFS command supports gzip format, this is straightforward,
77
--- compat/zlib/os400/README400
+++ compat/zlib/os400/README400
@@ -1,6 +1,6 @@
1 ZLIB version 1.3.0 for OS/400 installation instructions
2
3 1) Download and unpack the zlib tarball to some IFS directory.
4 (i.e.: /path/to/the/zlib/ifs/source/directory)
5
6 If the installed IFS command supports gzip format, this is straightforward,
7
--- compat/zlib/os400/README400
+++ compat/zlib/os400/README400
@@ -1,6 +1,6 @@
1 ZLIB version 1.3.1 for OS/400 installation instructions
2
3 1) Download and unpack the zlib tarball to some IFS directory.
4 (i.e.: /path/to/the/zlib/ifs/source/directory)
5
6 If the installed IFS command supports gzip format, this is straightforward,
7
--- compat/zlib/os400/zlib.inc
+++ compat/zlib/os400/zlib.inc
@@ -1,9 +1,9 @@
11
* ZLIB.INC - Interface to the general purpose compression library
22
*
33
* ILE RPG400 version by Patrick Monnerat, DATASPHERE.
4
- * Version 1.3.0
4
+ * Version 1.3.1
55
*
66
*
77
* WARNING:
88
* Procedures inflateInit(), inflateInit2(), deflateInit(),
99
* deflateInit2() and inflateBackInit() need to be called with
@@ -20,16 +20,16 @@
2020
* Constants
2121
**************************************************************************
2222
*
2323
* Versioning information.
2424
*
25
- D ZLIB_VERSION C '1.3.0'
25
+ D ZLIB_VERSION C '1.3.1'
2626
D ZLIB_VERNUM C X'12a0'
2727
D ZLIB_VER_MAJOR C 1
2828
D ZLIB_VER_MINOR C 3
2929
D ZLIB_VER_REVISION...
30
- D C 0
30
+ D C 1
3131
D ZLIB_VER_SUBREVISION...
3232
D C 0
3333
*
3434
* Other equates.
3535
*
3636
--- compat/zlib/os400/zlib.inc
+++ compat/zlib/os400/zlib.inc
@@ -1,9 +1,9 @@
1 * ZLIB.INC - Interface to the general purpose compression library
2 *
3 * ILE RPG400 version by Patrick Monnerat, DATASPHERE.
4 * Version 1.3.0
5 *
6 *
7 * WARNING:
8 * Procedures inflateInit(), inflateInit2(), deflateInit(),
9 * deflateInit2() and inflateBackInit() need to be called with
@@ -20,16 +20,16 @@
20 * Constants
21 **************************************************************************
22 *
23 * Versioning information.
24 *
25 D ZLIB_VERSION C '1.3.0'
26 D ZLIB_VERNUM C X'12a0'
27 D ZLIB_VER_MAJOR C 1
28 D ZLIB_VER_MINOR C 3
29 D ZLIB_VER_REVISION...
30 D C 0
31 D ZLIB_VER_SUBREVISION...
32 D C 0
33 *
34 * Other equates.
35 *
36
--- compat/zlib/os400/zlib.inc
+++ compat/zlib/os400/zlib.inc
@@ -1,9 +1,9 @@
1 * ZLIB.INC - Interface to the general purpose compression library
2 *
3 * ILE RPG400 version by Patrick Monnerat, DATASPHERE.
4 * Version 1.3.1
5 *
6 *
7 * WARNING:
8 * Procedures inflateInit(), inflateInit2(), deflateInit(),
9 * deflateInit2() and inflateBackInit() need to be called with
@@ -20,16 +20,16 @@
20 * Constants
21 **************************************************************************
22 *
23 * Versioning information.
24 *
25 D ZLIB_VERSION C '1.3.1'
26 D ZLIB_VERNUM C X'12a0'
27 D ZLIB_VER_MAJOR C 1
28 D ZLIB_VER_MINOR C 3
29 D ZLIB_VER_REVISION...
30 D C 1
31 D ZLIB_VER_SUBREVISION...
32 D C 0
33 *
34 * Other equates.
35 *
36
--- compat/zlib/qnx/package.qpg
+++ compat/zlib/qnx/package.qpg
@@ -23,14 +23,14 @@
2323
2424
<QPG:Values>
2525
<QPG:Files>
2626
<QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/>
2727
<QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/>
28
- <QPG:Add file="../libz.so.1.3.0" install="/opt/lib/" user="root:bin" permission="644"/>
29
- <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.3.0"/>
30
- <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.3.0"/>
31
- <QPG:Add file="../libz.so.1.3.0" install="/opt/lib/" component="slib"/>
28
+ <QPG:Add file="../libz.so.1.3.1" install="/opt/lib/" user="root:bin" permission="644"/>
29
+ <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.3.1"/>
30
+ <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.3.1"/>
31
+ <QPG:Add file="../libz.so.1.3.1" install="/opt/lib/" component="slib"/>
3232
</QPG:Files>
3333
3434
<QPG:PackageFilter>
3535
<QPM:PackageManifest>
3636
<QPM:PackageDescription>
@@ -61,11 +61,11 @@
6161
<QPM:ProductDescriptionURL>http://www.gzip.org/zlib</QPM:ProductDescriptionURL>
6262
<QPM:ProductDescriptionEmbedURL></QPM:ProductDescriptionEmbedURL>
6363
</QPM:ProductDescription>
6464
6565
<QPM:ReleaseDescription>
66
- <QPM:ReleaseVersion>1.3.0</QPM:ReleaseVersion>
66
+ <QPM:ReleaseVersion>1.3.1</QPM:ReleaseVersion>
6767
<QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
6868
<QPM:ReleaseStability>Stable</QPM:ReleaseStability>
6969
<QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
7070
<QPM:ReleaseNoteMajor></QPM:ReleaseNoteMajor>
7171
<QPM:ExcludeCountries>
7272
--- compat/zlib/qnx/package.qpg
+++ compat/zlib/qnx/package.qpg
@@ -23,14 +23,14 @@
23
24 <QPG:Values>
25 <QPG:Files>
26 <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/>
27 <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/>
28 <QPG:Add file="../libz.so.1.3.0" install="/opt/lib/" user="root:bin" permission="644"/>
29 <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.3.0"/>
30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.3.0"/>
31 <QPG:Add file="../libz.so.1.3.0" install="/opt/lib/" component="slib"/>
32 </QPG:Files>
33
34 <QPG:PackageFilter>
35 <QPM:PackageManifest>
36 <QPM:PackageDescription>
@@ -61,11 +61,11 @@
61 <QPM:ProductDescriptionURL>http://www.gzip.org/zlib</QPM:ProductDescriptionURL>
62 <QPM:ProductDescriptionEmbedURL></QPM:ProductDescriptionEmbedURL>
63 </QPM:ProductDescription>
64
65 <QPM:ReleaseDescription>
66 <QPM:ReleaseVersion>1.3.0</QPM:ReleaseVersion>
67 <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
68 <QPM:ReleaseStability>Stable</QPM:ReleaseStability>
69 <QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
70 <QPM:ReleaseNoteMajor></QPM:ReleaseNoteMajor>
71 <QPM:ExcludeCountries>
72
--- compat/zlib/qnx/package.qpg
+++ compat/zlib/qnx/package.qpg
@@ -23,14 +23,14 @@
23
24 <QPG:Values>
25 <QPG:Files>
26 <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/>
27 <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/>
28 <QPG:Add file="../libz.so.1.3.1" install="/opt/lib/" user="root:bin" permission="644"/>
29 <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.3.1"/>
30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.3.1"/>
31 <QPG:Add file="../libz.so.1.3.1" install="/opt/lib/" component="slib"/>
32 </QPG:Files>
33
34 <QPG:PackageFilter>
35 <QPM:PackageManifest>
36 <QPM:PackageDescription>
@@ -61,11 +61,11 @@
61 <QPM:ProductDescriptionURL>http://www.gzip.org/zlib</QPM:ProductDescriptionURL>
62 <QPM:ProductDescriptionEmbedURL></QPM:ProductDescriptionEmbedURL>
63 </QPM:ProductDescription>
64
65 <QPM:ReleaseDescription>
66 <QPM:ReleaseVersion>1.3.1</QPM:ReleaseVersion>
67 <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
68 <QPM:ReleaseStability>Stable</QPM:ReleaseStability>
69 <QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
70 <QPM:ReleaseNoteMajor></QPM:ReleaseNoteMajor>
71 <QPM:ExcludeCountries>
72
--- compat/zlib/test/example.c
+++ compat/zlib/test/example.c
@@ -34,16 +34,16 @@
3434
static const char dictionary[] = "hello";
3535
static uLong dictId; /* Adler32 value of the dictionary */
3636
3737
#ifdef Z_SOLO
3838
39
-void *myalloc(void *q, unsigned n, unsigned m) {
39
+static void *myalloc(void *q, unsigned n, unsigned m) {
4040
(void)q;
4141
return calloc(n, m);
4242
}
4343
44
-void myfree(void *q, void *p) {
44
+static void myfree(void *q, void *p) {
4545
(void)q;
4646
free(p);
4747
}
4848
4949
static alloc_func zalloc = myalloc;
@@ -55,11 +55,11 @@
5555
static free_func zfree = (free_func)0;
5656
5757
/* ===========================================================================
5858
* Test compress() and uncompress()
5959
*/
60
-void test_compress(Byte *compr, uLong comprLen, Byte *uncompr,
60
+static void test_compress(Byte *compr, uLong comprLen, Byte *uncompr,
6161
uLong uncomprLen) {
6262
int err;
6363
uLong len = (uLong)strlen(hello)+1;
6464
6565
err = compress(compr, &comprLen, (const Bytef*)hello, len);
@@ -79,11 +79,11 @@
7979
}
8080
8181
/* ===========================================================================
8282
* Test read/write of .gz files
8383
*/
84
-void test_gzio(const char *fname, Byte *uncompr, uLong uncomprLen) {
84
+static void test_gzio(const char *fname, Byte *uncompr, uLong uncomprLen) {
8585
#ifdef NO_GZCOMPRESS
8686
fprintf(stderr, "NO_GZCOMPRESS -- gz* functions cannot compress\n");
8787
#else
8888
int err;
8989
int len = (int)strlen(hello)+1;
@@ -161,11 +161,11 @@
161161
#endif /* Z_SOLO */
162162
163163
/* ===========================================================================
164164
* Test deflate() with small buffers
165165
*/
166
-void test_deflate(Byte *compr, uLong comprLen) {
166
+static void test_deflate(Byte *compr, uLong comprLen) {
167167
z_stream c_stream; /* compression stream */
168168
int err;
169169
uLong len = (uLong)strlen(hello)+1;
170170
171171
c_stream.zalloc = zalloc;
@@ -196,11 +196,11 @@
196196
}
197197
198198
/* ===========================================================================
199199
* Test inflate() with small buffers
200200
*/
201
-void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
201
+static void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
202202
uLong uncomprLen) {
203203
int err;
204204
z_stream d_stream; /* decompression stream */
205205
206206
strcpy((char*)uncompr, "garbage");
@@ -235,11 +235,11 @@
235235
}
236236
237237
/* ===========================================================================
238238
* Test deflate() with large buffers and dynamic change of compression level
239239
*/
240
-void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
240
+static void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
241241
uLong uncomprLen) {
242242
z_stream c_stream; /* compression stream */
243243
int err;
244244
245245
c_stream.zalloc = zalloc;
@@ -288,11 +288,11 @@
288288
}
289289
290290
/* ===========================================================================
291291
* Test inflate() with large buffers
292292
*/
293
-void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
293
+static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
294294
uLong uncomprLen) {
295295
int err;
296296
z_stream d_stream; /* decompression stream */
297297
298298
strcpy((char*)uncompr, "garbage");
@@ -327,11 +327,11 @@
327327
}
328328
329329
/* ===========================================================================
330330
* Test deflate() with full flush
331331
*/
332
-void test_flush(Byte *compr, uLong *comprLen) {
332
+static void test_flush(Byte *compr, uLong *comprLen) {
333333
z_stream c_stream; /* compression stream */
334334
int err;
335335
uInt len = (uInt)strlen(hello)+1;
336336
337337
c_stream.zalloc = zalloc;
@@ -362,11 +362,12 @@
362362
}
363363
364364
/* ===========================================================================
365365
* Test inflateSync()
366366
*/
367
-void test_sync(Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen) {
367
+static void test_sync(Byte *compr, uLong comprLen, Byte *uncompr,
368
+ uLong uncomprLen) {
368369
int err;
369370
z_stream d_stream; /* decompression stream */
370371
371372
strcpy((char*)uncompr, "garbage");
372373
@@ -402,11 +403,11 @@
402403
}
403404
404405
/* ===========================================================================
405406
* Test deflate() with preset dictionary
406407
*/
407
-void test_dict_deflate(Byte *compr, uLong comprLen) {
408
+static void test_dict_deflate(Byte *compr, uLong comprLen) {
408409
z_stream c_stream; /* compression stream */
409410
int err;
410411
411412
c_stream.zalloc = zalloc;
412413
c_stream.zfree = zfree;
@@ -436,11 +437,11 @@
436437
}
437438
438439
/* ===========================================================================
439440
* Test inflate() with a preset dictionary
440441
*/
441
-void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
442
+static void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
442443
uLong uncomprLen) {
443444
int err;
444445
z_stream d_stream; /* decompression stream */
445446
446447
strcpy((char*)uncompr, "garbage");
447448
--- compat/zlib/test/example.c
+++ compat/zlib/test/example.c
@@ -34,16 +34,16 @@
34 static const char dictionary[] = "hello";
35 static uLong dictId; /* Adler32 value of the dictionary */
36
37 #ifdef Z_SOLO
38
39 void *myalloc(void *q, unsigned n, unsigned m) {
40 (void)q;
41 return calloc(n, m);
42 }
43
44 void myfree(void *q, void *p) {
45 (void)q;
46 free(p);
47 }
48
49 static alloc_func zalloc = myalloc;
@@ -55,11 +55,11 @@
55 static free_func zfree = (free_func)0;
56
57 /* ===========================================================================
58 * Test compress() and uncompress()
59 */
60 void test_compress(Byte *compr, uLong comprLen, Byte *uncompr,
61 uLong uncomprLen) {
62 int err;
63 uLong len = (uLong)strlen(hello)+1;
64
65 err = compress(compr, &comprLen, (const Bytef*)hello, len);
@@ -79,11 +79,11 @@
79 }
80
81 /* ===========================================================================
82 * Test read/write of .gz files
83 */
84 void test_gzio(const char *fname, Byte *uncompr, uLong uncomprLen) {
85 #ifdef NO_GZCOMPRESS
86 fprintf(stderr, "NO_GZCOMPRESS -- gz* functions cannot compress\n");
87 #else
88 int err;
89 int len = (int)strlen(hello)+1;
@@ -161,11 +161,11 @@
161 #endif /* Z_SOLO */
162
163 /* ===========================================================================
164 * Test deflate() with small buffers
165 */
166 void test_deflate(Byte *compr, uLong comprLen) {
167 z_stream c_stream; /* compression stream */
168 int err;
169 uLong len = (uLong)strlen(hello)+1;
170
171 c_stream.zalloc = zalloc;
@@ -196,11 +196,11 @@
196 }
197
198 /* ===========================================================================
199 * Test inflate() with small buffers
200 */
201 void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
202 uLong uncomprLen) {
203 int err;
204 z_stream d_stream; /* decompression stream */
205
206 strcpy((char*)uncompr, "garbage");
@@ -235,11 +235,11 @@
235 }
236
237 /* ===========================================================================
238 * Test deflate() with large buffers and dynamic change of compression level
239 */
240 void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
241 uLong uncomprLen) {
242 z_stream c_stream; /* compression stream */
243 int err;
244
245 c_stream.zalloc = zalloc;
@@ -288,11 +288,11 @@
288 }
289
290 /* ===========================================================================
291 * Test inflate() with large buffers
292 */
293 void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
294 uLong uncomprLen) {
295 int err;
296 z_stream d_stream; /* decompression stream */
297
298 strcpy((char*)uncompr, "garbage");
@@ -327,11 +327,11 @@
327 }
328
329 /* ===========================================================================
330 * Test deflate() with full flush
331 */
332 void test_flush(Byte *compr, uLong *comprLen) {
333 z_stream c_stream; /* compression stream */
334 int err;
335 uInt len = (uInt)strlen(hello)+1;
336
337 c_stream.zalloc = zalloc;
@@ -362,11 +362,12 @@
362 }
363
364 /* ===========================================================================
365 * Test inflateSync()
366 */
367 void test_sync(Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen) {
 
368 int err;
369 z_stream d_stream; /* decompression stream */
370
371 strcpy((char*)uncompr, "garbage");
372
@@ -402,11 +403,11 @@
402 }
403
404 /* ===========================================================================
405 * Test deflate() with preset dictionary
406 */
407 void test_dict_deflate(Byte *compr, uLong comprLen) {
408 z_stream c_stream; /* compression stream */
409 int err;
410
411 c_stream.zalloc = zalloc;
412 c_stream.zfree = zfree;
@@ -436,11 +437,11 @@
436 }
437
438 /* ===========================================================================
439 * Test inflate() with a preset dictionary
440 */
441 void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
442 uLong uncomprLen) {
443 int err;
444 z_stream d_stream; /* decompression stream */
445
446 strcpy((char*)uncompr, "garbage");
447
--- compat/zlib/test/example.c
+++ compat/zlib/test/example.c
@@ -34,16 +34,16 @@
34 static const char dictionary[] = "hello";
35 static uLong dictId; /* Adler32 value of the dictionary */
36
37 #ifdef Z_SOLO
38
39 static void *myalloc(void *q, unsigned n, unsigned m) {
40 (void)q;
41 return calloc(n, m);
42 }
43
44 static void myfree(void *q, void *p) {
45 (void)q;
46 free(p);
47 }
48
49 static alloc_func zalloc = myalloc;
@@ -55,11 +55,11 @@
55 static free_func zfree = (free_func)0;
56
57 /* ===========================================================================
58 * Test compress() and uncompress()
59 */
60 static void test_compress(Byte *compr, uLong comprLen, Byte *uncompr,
61 uLong uncomprLen) {
62 int err;
63 uLong len = (uLong)strlen(hello)+1;
64
65 err = compress(compr, &comprLen, (const Bytef*)hello, len);
@@ -79,11 +79,11 @@
79 }
80
81 /* ===========================================================================
82 * Test read/write of .gz files
83 */
84 static void test_gzio(const char *fname, Byte *uncompr, uLong uncomprLen) {
85 #ifdef NO_GZCOMPRESS
86 fprintf(stderr, "NO_GZCOMPRESS -- gz* functions cannot compress\n");
87 #else
88 int err;
89 int len = (int)strlen(hello)+1;
@@ -161,11 +161,11 @@
161 #endif /* Z_SOLO */
162
163 /* ===========================================================================
164 * Test deflate() with small buffers
165 */
166 static void test_deflate(Byte *compr, uLong comprLen) {
167 z_stream c_stream; /* compression stream */
168 int err;
169 uLong len = (uLong)strlen(hello)+1;
170
171 c_stream.zalloc = zalloc;
@@ -196,11 +196,11 @@
196 }
197
198 /* ===========================================================================
199 * Test inflate() with small buffers
200 */
201 static void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
202 uLong uncomprLen) {
203 int err;
204 z_stream d_stream; /* decompression stream */
205
206 strcpy((char*)uncompr, "garbage");
@@ -235,11 +235,11 @@
235 }
236
237 /* ===========================================================================
238 * Test deflate() with large buffers and dynamic change of compression level
239 */
240 static void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
241 uLong uncomprLen) {
242 z_stream c_stream; /* compression stream */
243 int err;
244
245 c_stream.zalloc = zalloc;
@@ -288,11 +288,11 @@
288 }
289
290 /* ===========================================================================
291 * Test inflate() with large buffers
292 */
293 static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
294 uLong uncomprLen) {
295 int err;
296 z_stream d_stream; /* decompression stream */
297
298 strcpy((char*)uncompr, "garbage");
@@ -327,11 +327,11 @@
327 }
328
329 /* ===========================================================================
330 * Test deflate() with full flush
331 */
332 static void test_flush(Byte *compr, uLong *comprLen) {
333 z_stream c_stream; /* compression stream */
334 int err;
335 uInt len = (uInt)strlen(hello)+1;
336
337 c_stream.zalloc = zalloc;
@@ -362,11 +362,12 @@
362 }
363
364 /* ===========================================================================
365 * Test inflateSync()
366 */
367 static void test_sync(Byte *compr, uLong comprLen, Byte *uncompr,
368 uLong uncomprLen) {
369 int err;
370 z_stream d_stream; /* decompression stream */
371
372 strcpy((char*)uncompr, "garbage");
373
@@ -402,11 +403,11 @@
403 }
404
405 /* ===========================================================================
406 * Test deflate() with preset dictionary
407 */
408 static void test_dict_deflate(Byte *compr, uLong comprLen) {
409 z_stream c_stream; /* compression stream */
410 int err;
411
412 c_stream.zalloc = zalloc;
413 c_stream.zfree = zfree;
@@ -436,11 +437,11 @@
437 }
438
439 /* ===========================================================================
440 * Test inflate() with a preset dictionary
441 */
442 static void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
443 uLong uncomprLen) {
444 int err;
445 z_stream d_stream; /* decompression stream */
446
447 strcpy((char*)uncompr, "garbage");
448
--- compat/zlib/test/minigzip.c
+++ compat/zlib/test/minigzip.c
@@ -147,16 +147,16 @@
147147
148148
#if defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)
149149
# include <unistd.h> /* for unlink() */
150150
#endif
151151
152
-void *myalloc(void *q, unsigned n, unsigned m) {
152
+static void *myalloc(void *q, unsigned n, unsigned m) {
153153
(void)q;
154154
return calloc(n, m);
155155
}
156156
157
-void myfree(void *q, void *p) {
157
+static void myfree(void *q, void *p) {
158158
(void)q;
159159
free(p);
160160
}
161161
162162
typedef struct gzFile_s {
@@ -165,11 +165,11 @@
165165
int err;
166166
char *msg;
167167
z_stream strm;
168168
} *gzFile;
169169
170
-gzFile gz_open(const char *path, int fd, const char *mode) {
170
+static gzFile gz_open(const char *path, int fd, const char *mode) {
171171
gzFile gz;
172172
int ret;
173173
174174
gz = malloc(sizeof(struct gzFile_s));
175175
if (gz == NULL)
@@ -199,19 +199,19 @@
199199
gz->err = 0;
200200
gz->msg = "";
201201
return gz;
202202
}
203203
204
-gzFile gzopen(const char *path, const char *mode) {
204
+static gzFile gzopen(const char *path, const char *mode) {
205205
return gz_open(path, -1, mode);
206206
}
207207
208
-gzFile gzdopen(int fd, const char *mode) {
208
+static gzFile gzdopen(int fd, const char *mode) {
209209
return gz_open(NULL, fd, mode);
210210
}
211211
212
-int gzwrite(gzFile gz, const void *buf, unsigned len) {
212
+static int gzwrite(gzFile gz, const void *buf, unsigned len) {
213213
z_stream *strm;
214214
unsigned char out[BUFLEN];
215215
216216
if (gz == NULL || !gz->write)
217217
return 0;
@@ -225,11 +225,11 @@
225225
fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
226226
} while (strm->avail_out == 0);
227227
return len;
228228
}
229229
230
-int gzread(gzFile gz, void *buf, unsigned len) {
230
+static int gzread(gzFile gz, void *buf, unsigned len) {
231231
int ret;
232232
unsigned got;
233233
unsigned char in[1];
234234
z_stream *strm;
235235
@@ -256,11 +256,11 @@
256256
inflateReset(strm);
257257
} while (strm->avail_out);
258258
return len - strm->avail_out;
259259
}
260260
261
-int gzclose(gzFile gz) {
261
+static int gzclose(gzFile gz) {
262262
z_stream *strm;
263263
unsigned char out[BUFLEN];
264264
265265
if (gz == NULL)
266266
return Z_STREAM_ERROR;
@@ -281,11 +281,11 @@
281281
fclose(gz->file);
282282
free(gz);
283283
return Z_OK;
284284
}
285285
286
-const char *gzerror(gzFile gz, int *err) {
286
+static const char *gzerror(gzFile gz, int *err) {
287287
*err = gz->err;
288288
return gz->msg;
289289
}
290290
291291
#endif
@@ -293,21 +293,21 @@
293293
static char *prog;
294294
295295
/* ===========================================================================
296296
* Display error message and exit
297297
*/
298
-void error(const char *msg) {
298
+static void error(const char *msg) {
299299
fprintf(stderr, "%s: %s\n", prog, msg);
300300
exit(1);
301301
}
302302
303303
#ifdef USE_MMAP /* MMAP version, Miguel Albrecht <[email protected]> */
304304
305305
/* Try compressing the input file at once using mmap. Return Z_OK if
306
- * if success, Z_ERRNO otherwise.
306
+ * success, Z_ERRNO otherwise.
307307
*/
308
-int gz_compress_mmap(FILE *in, gzFile out) {
308
+static int gz_compress_mmap(FILE *in, gzFile out) {
309309
int len;
310310
int err;
311311
int ifd = fileno(in);
312312
caddr_t buf; /* mmap'ed buffer for the entire input file */
313313
off_t buf_len; /* length of the input file */
@@ -336,11 +336,11 @@
336336
337337
/* ===========================================================================
338338
* Compress input to output then close both files.
339339
*/
340340
341
-void gz_compress(FILE *in, gzFile out) {
341
+static void gz_compress(FILE *in, gzFile out) {
342342
local char buf[BUFLEN];
343343
int len;
344344
int err;
345345
346346
#ifdef USE_MMAP
@@ -364,11 +364,11 @@
364364
}
365365
366366
/* ===========================================================================
367367
* Uncompress input to output then close both files.
368368
*/
369
-void gz_uncompress(gzFile in, FILE *out) {
369
+static void gz_uncompress(gzFile in, FILE *out) {
370370
local char buf[BUFLEN];
371371
int len;
372372
int err;
373373
374374
for (;;) {
@@ -388,11 +388,11 @@
388388
389389
/* ===========================================================================
390390
* Compress the given file: create a corresponding .gz file and remove the
391391
* original.
392392
*/
393
-void file_compress(char *file, char *mode) {
393
+static void file_compress(char *file, char *mode) {
394394
local char outfile[MAX_NAME_LEN];
395395
FILE *in;
396396
gzFile out;
397397
398398
if (strlen(file) + strlen(GZ_SUFFIX) >= sizeof(outfile)) {
@@ -424,11 +424,11 @@
424424
425425
426426
/* ===========================================================================
427427
* Uncompress the given file and remove the original.
428428
*/
429
-void file_uncompress(char *file) {
429
+static void file_uncompress(char *file) {
430430
local char buf[MAX_NAME_LEN];
431431
char *infile, *outfile;
432432
FILE *out;
433433
gzFile in;
434434
z_size_t len = strlen(file);
435435
--- compat/zlib/test/minigzip.c
+++ compat/zlib/test/minigzip.c
@@ -147,16 +147,16 @@
147
148 #if defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)
149 # include <unistd.h> /* for unlink() */
150 #endif
151
152 void *myalloc(void *q, unsigned n, unsigned m) {
153 (void)q;
154 return calloc(n, m);
155 }
156
157 void myfree(void *q, void *p) {
158 (void)q;
159 free(p);
160 }
161
162 typedef struct gzFile_s {
@@ -165,11 +165,11 @@
165 int err;
166 char *msg;
167 z_stream strm;
168 } *gzFile;
169
170 gzFile gz_open(const char *path, int fd, const char *mode) {
171 gzFile gz;
172 int ret;
173
174 gz = malloc(sizeof(struct gzFile_s));
175 if (gz == NULL)
@@ -199,19 +199,19 @@
199 gz->err = 0;
200 gz->msg = "";
201 return gz;
202 }
203
204 gzFile gzopen(const char *path, const char *mode) {
205 return gz_open(path, -1, mode);
206 }
207
208 gzFile gzdopen(int fd, const char *mode) {
209 return gz_open(NULL, fd, mode);
210 }
211
212 int gzwrite(gzFile gz, const void *buf, unsigned len) {
213 z_stream *strm;
214 unsigned char out[BUFLEN];
215
216 if (gz == NULL || !gz->write)
217 return 0;
@@ -225,11 +225,11 @@
225 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
226 } while (strm->avail_out == 0);
227 return len;
228 }
229
230 int gzread(gzFile gz, void *buf, unsigned len) {
231 int ret;
232 unsigned got;
233 unsigned char in[1];
234 z_stream *strm;
235
@@ -256,11 +256,11 @@
256 inflateReset(strm);
257 } while (strm->avail_out);
258 return len - strm->avail_out;
259 }
260
261 int gzclose(gzFile gz) {
262 z_stream *strm;
263 unsigned char out[BUFLEN];
264
265 if (gz == NULL)
266 return Z_STREAM_ERROR;
@@ -281,11 +281,11 @@
281 fclose(gz->file);
282 free(gz);
283 return Z_OK;
284 }
285
286 const char *gzerror(gzFile gz, int *err) {
287 *err = gz->err;
288 return gz->msg;
289 }
290
291 #endif
@@ -293,21 +293,21 @@
293 static char *prog;
294
295 /* ===========================================================================
296 * Display error message and exit
297 */
298 void error(const char *msg) {
299 fprintf(stderr, "%s: %s\n", prog, msg);
300 exit(1);
301 }
302
303 #ifdef USE_MMAP /* MMAP version, Miguel Albrecht <[email protected]> */
304
305 /* Try compressing the input file at once using mmap. Return Z_OK if
306 * if success, Z_ERRNO otherwise.
307 */
308 int gz_compress_mmap(FILE *in, gzFile out) {
309 int len;
310 int err;
311 int ifd = fileno(in);
312 caddr_t buf; /* mmap'ed buffer for the entire input file */
313 off_t buf_len; /* length of the input file */
@@ -336,11 +336,11 @@
336
337 /* ===========================================================================
338 * Compress input to output then close both files.
339 */
340
341 void gz_compress(FILE *in, gzFile out) {
342 local char buf[BUFLEN];
343 int len;
344 int err;
345
346 #ifdef USE_MMAP
@@ -364,11 +364,11 @@
364 }
365
366 /* ===========================================================================
367 * Uncompress input to output then close both files.
368 */
369 void gz_uncompress(gzFile in, FILE *out) {
370 local char buf[BUFLEN];
371 int len;
372 int err;
373
374 for (;;) {
@@ -388,11 +388,11 @@
388
389 /* ===========================================================================
390 * Compress the given file: create a corresponding .gz file and remove the
391 * original.
392 */
393 void file_compress(char *file, char *mode) {
394 local char outfile[MAX_NAME_LEN];
395 FILE *in;
396 gzFile out;
397
398 if (strlen(file) + strlen(GZ_SUFFIX) >= sizeof(outfile)) {
@@ -424,11 +424,11 @@
424
425
426 /* ===========================================================================
427 * Uncompress the given file and remove the original.
428 */
429 void file_uncompress(char *file) {
430 local char buf[MAX_NAME_LEN];
431 char *infile, *outfile;
432 FILE *out;
433 gzFile in;
434 z_size_t len = strlen(file);
435
--- compat/zlib/test/minigzip.c
+++ compat/zlib/test/minigzip.c
@@ -147,16 +147,16 @@
147
148 #if defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)
149 # include <unistd.h> /* for unlink() */
150 #endif
151
152 static void *myalloc(void *q, unsigned n, unsigned m) {
153 (void)q;
154 return calloc(n, m);
155 }
156
157 static void myfree(void *q, void *p) {
158 (void)q;
159 free(p);
160 }
161
162 typedef struct gzFile_s {
@@ -165,11 +165,11 @@
165 int err;
166 char *msg;
167 z_stream strm;
168 } *gzFile;
169
170 static gzFile gz_open(const char *path, int fd, const char *mode) {
171 gzFile gz;
172 int ret;
173
174 gz = malloc(sizeof(struct gzFile_s));
175 if (gz == NULL)
@@ -199,19 +199,19 @@
199 gz->err = 0;
200 gz->msg = "";
201 return gz;
202 }
203
204 static gzFile gzopen(const char *path, const char *mode) {
205 return gz_open(path, -1, mode);
206 }
207
208 static gzFile gzdopen(int fd, const char *mode) {
209 return gz_open(NULL, fd, mode);
210 }
211
212 static int gzwrite(gzFile gz, const void *buf, unsigned len) {
213 z_stream *strm;
214 unsigned char out[BUFLEN];
215
216 if (gz == NULL || !gz->write)
217 return 0;
@@ -225,11 +225,11 @@
225 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
226 } while (strm->avail_out == 0);
227 return len;
228 }
229
230 static int gzread(gzFile gz, void *buf, unsigned len) {
231 int ret;
232 unsigned got;
233 unsigned char in[1];
234 z_stream *strm;
235
@@ -256,11 +256,11 @@
256 inflateReset(strm);
257 } while (strm->avail_out);
258 return len - strm->avail_out;
259 }
260
261 static int gzclose(gzFile gz) {
262 z_stream *strm;
263 unsigned char out[BUFLEN];
264
265 if (gz == NULL)
266 return Z_STREAM_ERROR;
@@ -281,11 +281,11 @@
281 fclose(gz->file);
282 free(gz);
283 return Z_OK;
284 }
285
286 static const char *gzerror(gzFile gz, int *err) {
287 *err = gz->err;
288 return gz->msg;
289 }
290
291 #endif
@@ -293,21 +293,21 @@
293 static char *prog;
294
295 /* ===========================================================================
296 * Display error message and exit
297 */
298 static void error(const char *msg) {
299 fprintf(stderr, "%s: %s\n", prog, msg);
300 exit(1);
301 }
302
303 #ifdef USE_MMAP /* MMAP version, Miguel Albrecht <[email protected]> */
304
305 /* Try compressing the input file at once using mmap. Return Z_OK if
306 * success, Z_ERRNO otherwise.
307 */
308 static int gz_compress_mmap(FILE *in, gzFile out) {
309 int len;
310 int err;
311 int ifd = fileno(in);
312 caddr_t buf; /* mmap'ed buffer for the entire input file */
313 off_t buf_len; /* length of the input file */
@@ -336,11 +336,11 @@
336
337 /* ===========================================================================
338 * Compress input to output then close both files.
339 */
340
341 static void gz_compress(FILE *in, gzFile out) {
342 local char buf[BUFLEN];
343 int len;
344 int err;
345
346 #ifdef USE_MMAP
@@ -364,11 +364,11 @@
364 }
365
366 /* ===========================================================================
367 * Uncompress input to output then close both files.
368 */
369 static void gz_uncompress(gzFile in, FILE *out) {
370 local char buf[BUFLEN];
371 int len;
372 int err;
373
374 for (;;) {
@@ -388,11 +388,11 @@
388
389 /* ===========================================================================
390 * Compress the given file: create a corresponding .gz file and remove the
391 * original.
392 */
393 static void file_compress(char *file, char *mode) {
394 local char outfile[MAX_NAME_LEN];
395 FILE *in;
396 gzFile out;
397
398 if (strlen(file) + strlen(GZ_SUFFIX) >= sizeof(outfile)) {
@@ -424,11 +424,11 @@
424
425
426 /* ===========================================================================
427 * Uncompress the given file and remove the original.
428 */
429 static void file_uncompress(char *file) {
430 local char buf[MAX_NAME_LEN];
431 char *infile, *outfile;
432 FILE *out;
433 gzFile in;
434 z_size_t len = strlen(file);
435
--- compat/zlib/treebuild.xml
+++ compat/zlib/treebuild.xml
@@ -1,8 +1,8 @@
11
<?xml version="1.0" ?>
2
-<package name="zlib" version="1.3">
3
- <library name="zlib" dlversion="1.3" dlname="z">
2
+<package name="zlib" version="1.3.1">
3
+ <library name="zlib" dlversion="1.3.1" dlname="z">
44
<property name="description"> zip compression library </property>
55
<property name="include-target-dir" value="$(@PACKAGE/install-includedir)" />
66
77
<!-- fixme: not implemented yet -->
88
<property name="compiler/c/inline" value="yes" />
99
--- compat/zlib/treebuild.xml
+++ compat/zlib/treebuild.xml
@@ -1,8 +1,8 @@
1 <?xml version="1.0" ?>
2 <package name="zlib" version="1.3">
3 <library name="zlib" dlversion="1.3" dlname="z">
4 <property name="description"> zip compression library </property>
5 <property name="include-target-dir" value="$(@PACKAGE/install-includedir)" />
6
7 <!-- fixme: not implemented yet -->
8 <property name="compiler/c/inline" value="yes" />
9
--- compat/zlib/treebuild.xml
+++ compat/zlib/treebuild.xml
@@ -1,8 +1,8 @@
1 <?xml version="1.0" ?>
2 <package name="zlib" version="1.3.1">
3 <library name="zlib" dlversion="1.3.1" dlname="z">
4 <property name="description"> zip compression library </property>
5 <property name="include-target-dir" value="$(@PACKAGE/install-includedir)" />
6
7 <!-- fixme: not implemented yet -->
8 <property name="compiler/c/inline" value="yes" />
9
--- compat/zlib/trees.c
+++ compat/zlib/trees.c
@@ -1,7 +1,7 @@
11
/* trees.c -- output deflated data using Huffman coding
2
- * Copyright (C) 1995-2021 Jean-loup Gailly
2
+ * Copyright (C) 1995-2024 Jean-loup Gailly
33
* detect_data_type() function provided freely by Cosmin Truta, 2006
44
* For conditions of distribution and use, see copyright notice in zlib.h
55
*/
66
77
/*
@@ -897,18 +897,23 @@
897897
*/
898898
local void compress_block(deflate_state *s, const ct_data *ltree,
899899
const ct_data *dtree) {
900900
unsigned dist; /* distance of matched string */
901901
int lc; /* match length or unmatched char (if dist == 0) */
902
- unsigned sx = 0; /* running index in sym_buf */
902
+ unsigned sx = 0; /* running index in symbol buffers */
903903
unsigned code; /* the code to send */
904904
int extra; /* number of extra bits to send */
905905
906906
if (s->sym_next != 0) do {
907
+#ifdef LIT_MEM
908
+ dist = s->d_buf[sx];
909
+ lc = s->l_buf[sx++];
910
+#else
907911
dist = s->sym_buf[sx++] & 0xff;
908912
dist += (unsigned)(s->sym_buf[sx++] & 0xff) << 8;
909913
lc = s->sym_buf[sx++];
914
+#endif
910915
if (dist == 0) {
911916
send_code(s, lc, ltree); /* send a literal byte */
912917
Tracecv(isgraph(lc), (stderr," '%c' ", lc));
913918
} else {
914919
/* Here, lc is the match length - MIN_MATCH */
@@ -929,12 +934,16 @@
929934
dist -= (unsigned)base_dist[code];
930935
send_bits(s, dist, extra); /* send the extra distance bits */
931936
}
932937
} /* literal or match pair ? */
933938
934
- /* Check that the overlay between pending_buf and sym_buf is ok: */
939
+ /* Check for no overlay of pending_buf on needed symbols */
940
+#ifdef LIT_MEM
941
+ Assert(s->pending < 2 * (s->lit_bufsize + sx), "pendingBuf overflow");
942
+#else
935943
Assert(s->pending < s->lit_bufsize + sx, "pendingBuf overflow");
944
+#endif
936945
937946
} while (sx < s->sym_next);
938947
939948
send_code(s, END_BLOCK, ltree);
940949
}
@@ -1080,13 +1089,18 @@
10801089
/* ===========================================================================
10811090
* Save the match info and tally the frequency counts. Return true if
10821091
* the current block must be flushed.
10831092
*/
10841093
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc) {
1094
+#ifdef LIT_MEM
1095
+ s->d_buf[s->sym_next] = (ush)dist;
1096
+ s->l_buf[s->sym_next++] = (uch)lc;
1097
+#else
10851098
s->sym_buf[s->sym_next++] = (uch)dist;
10861099
s->sym_buf[s->sym_next++] = (uch)(dist >> 8);
10871100
s->sym_buf[s->sym_next++] = (uch)lc;
1101
+#endif
10881102
if (dist == 0) {
10891103
/* lc is the unmatched char */
10901104
s->dyn_ltree[lc].Freq++;
10911105
} else {
10921106
s->matches++;
10931107
--- compat/zlib/trees.c
+++ compat/zlib/trees.c
@@ -1,7 +1,7 @@
1 /* trees.c -- output deflated data using Huffman coding
2 * Copyright (C) 1995-2021 Jean-loup Gailly
3 * detect_data_type() function provided freely by Cosmin Truta, 2006
4 * For conditions of distribution and use, see copyright notice in zlib.h
5 */
6
7 /*
@@ -897,18 +897,23 @@
897 */
898 local void compress_block(deflate_state *s, const ct_data *ltree,
899 const ct_data *dtree) {
900 unsigned dist; /* distance of matched string */
901 int lc; /* match length or unmatched char (if dist == 0) */
902 unsigned sx = 0; /* running index in sym_buf */
903 unsigned code; /* the code to send */
904 int extra; /* number of extra bits to send */
905
906 if (s->sym_next != 0) do {
 
 
 
 
907 dist = s->sym_buf[sx++] & 0xff;
908 dist += (unsigned)(s->sym_buf[sx++] & 0xff) << 8;
909 lc = s->sym_buf[sx++];
 
910 if (dist == 0) {
911 send_code(s, lc, ltree); /* send a literal byte */
912 Tracecv(isgraph(lc), (stderr," '%c' ", lc));
913 } else {
914 /* Here, lc is the match length - MIN_MATCH */
@@ -929,12 +934,16 @@
929 dist -= (unsigned)base_dist[code];
930 send_bits(s, dist, extra); /* send the extra distance bits */
931 }
932 } /* literal or match pair ? */
933
934 /* Check that the overlay between pending_buf and sym_buf is ok: */
 
 
 
935 Assert(s->pending < s->lit_bufsize + sx, "pendingBuf overflow");
 
936
937 } while (sx < s->sym_next);
938
939 send_code(s, END_BLOCK, ltree);
940 }
@@ -1080,13 +1089,18 @@
1080 /* ===========================================================================
1081 * Save the match info and tally the frequency counts. Return true if
1082 * the current block must be flushed.
1083 */
1084 int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc) {
 
 
 
 
1085 s->sym_buf[s->sym_next++] = (uch)dist;
1086 s->sym_buf[s->sym_next++] = (uch)(dist >> 8);
1087 s->sym_buf[s->sym_next++] = (uch)lc;
 
1088 if (dist == 0) {
1089 /* lc is the unmatched char */
1090 s->dyn_ltree[lc].Freq++;
1091 } else {
1092 s->matches++;
1093
--- compat/zlib/trees.c
+++ compat/zlib/trees.c
@@ -1,7 +1,7 @@
1 /* trees.c -- output deflated data using Huffman coding
2 * Copyright (C) 1995-2024 Jean-loup Gailly
3 * detect_data_type() function provided freely by Cosmin Truta, 2006
4 * For conditions of distribution and use, see copyright notice in zlib.h
5 */
6
7 /*
@@ -897,18 +897,23 @@
897 */
898 local void compress_block(deflate_state *s, const ct_data *ltree,
899 const ct_data *dtree) {
900 unsigned dist; /* distance of matched string */
901 int lc; /* match length or unmatched char (if dist == 0) */
902 unsigned sx = 0; /* running index in symbol buffers */
903 unsigned code; /* the code to send */
904 int extra; /* number of extra bits to send */
905
906 if (s->sym_next != 0) do {
907 #ifdef LIT_MEM
908 dist = s->d_buf[sx];
909 lc = s->l_buf[sx++];
910 #else
911 dist = s->sym_buf[sx++] & 0xff;
912 dist += (unsigned)(s->sym_buf[sx++] & 0xff) << 8;
913 lc = s->sym_buf[sx++];
914 #endif
915 if (dist == 0) {
916 send_code(s, lc, ltree); /* send a literal byte */
917 Tracecv(isgraph(lc), (stderr," '%c' ", lc));
918 } else {
919 /* Here, lc is the match length - MIN_MATCH */
@@ -929,12 +934,16 @@
934 dist -= (unsigned)base_dist[code];
935 send_bits(s, dist, extra); /* send the extra distance bits */
936 }
937 } /* literal or match pair ? */
938
939 /* Check for no overlay of pending_buf on needed symbols */
940 #ifdef LIT_MEM
941 Assert(s->pending < 2 * (s->lit_bufsize + sx), "pendingBuf overflow");
942 #else
943 Assert(s->pending < s->lit_bufsize + sx, "pendingBuf overflow");
944 #endif
945
946 } while (sx < s->sym_next);
947
948 send_code(s, END_BLOCK, ltree);
949 }
@@ -1080,13 +1089,18 @@
1089 /* ===========================================================================
1090 * Save the match info and tally the frequency counts. Return true if
1091 * the current block must be flushed.
1092 */
1093 int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc) {
1094 #ifdef LIT_MEM
1095 s->d_buf[s->sym_next] = (ush)dist;
1096 s->l_buf[s->sym_next++] = (uch)lc;
1097 #else
1098 s->sym_buf[s->sym_next++] = (uch)dist;
1099 s->sym_buf[s->sym_next++] = (uch)(dist >> 8);
1100 s->sym_buf[s->sym_next++] = (uch)lc;
1101 #endif
1102 if (dist == 0) {
1103 /* lc is the unmatched char */
1104 s->dyn_ltree[lc].Freq++;
1105 } else {
1106 s->matches++;
1107
--- compat/zlib/win32/DLL_FAQ.txt
+++ compat/zlib/win32/DLL_FAQ.txt
@@ -1,25 +1,21 @@
11
22
Frequently Asked Questions about ZLIB1.DLL
33
44
55
This document describes the design, the rationale, and the usage
6
-of the official DLL build of zlib, named ZLIB1.DLL. If you have
6
+of the common DLL build of zlib, named ZLIB1.DLL. If you have
77
general questions about zlib, you should see the file "FAQ" found
88
in the zlib distribution, or at the following location:
99
http://www.gzip.org/zlib/zlib_faq.html
1010
1111
1212
1. What is ZLIB1.DLL, and how can I get it?
1313
14
- - ZLIB1.DLL is the official build of zlib as a DLL.
14
+ - ZLIB1.DLL is the common build of zlib as a DLL.
1515
(Please remark the character '1' in the name.)
1616
17
- Pointers to a precompiled ZLIB1.DLL can be found in the zlib
18
- web site at:
19
- http://www.zlib.net/
20
-
2117
Applications that link to ZLIB1.DLL can rely on the following
2218
specification:
2319
2420
* The exported symbols are exclusively defined in the source
2521
files "zlib.h" and "zlib.def", found in an official zlib
@@ -377,21 +373,9 @@
377373
- No. A legitimate build of ZLIB1.DLL must provide the complete
378374
zlib functionality, as implemented in the official zlib source
379375
code. But you can make your own private DLL build, under a
380376
different file name, as suggested in the previous answer.
381377
382
-
383
-17. I made my own ZLIB1.DLL build. Can I test it for compliance?
384
-
385
- - We prefer that you download the official DLL from the zlib
386
- web site. If you need something peculiar from this DLL, you
387
- can send your suggestion to the zlib mailing list.
388
-
389
- However, in case you do rebuild the DLL yourself, you can run
390
- it with the test programs found in the DLL distribution.
391
- Running these test programs is not a guarantee of compliance,
392
- but a failure can imply a detected problem.
393
-
394378
**
395379
396380
This document is written and maintained by
397381
Cosmin Truta <[email protected]>
398382
--- compat/zlib/win32/DLL_FAQ.txt
+++ compat/zlib/win32/DLL_FAQ.txt
@@ -1,25 +1,21 @@
1
2 Frequently Asked Questions about ZLIB1.DLL
3
4
5 This document describes the design, the rationale, and the usage
6 of the official DLL build of zlib, named ZLIB1.DLL. If you have
7 general questions about zlib, you should see the file "FAQ" found
8 in the zlib distribution, or at the following location:
9 http://www.gzip.org/zlib/zlib_faq.html
10
11
12 1. What is ZLIB1.DLL, and how can I get it?
13
14 - ZLIB1.DLL is the official build of zlib as a DLL.
15 (Please remark the character '1' in the name.)
16
17 Pointers to a precompiled ZLIB1.DLL can be found in the zlib
18 web site at:
19 http://www.zlib.net/
20
21 Applications that link to ZLIB1.DLL can rely on the following
22 specification:
23
24 * The exported symbols are exclusively defined in the source
25 files "zlib.h" and "zlib.def", found in an official zlib
@@ -377,21 +373,9 @@
377 - No. A legitimate build of ZLIB1.DLL must provide the complete
378 zlib functionality, as implemented in the official zlib source
379 code. But you can make your own private DLL build, under a
380 different file name, as suggested in the previous answer.
381
382
383 17. I made my own ZLIB1.DLL build. Can I test it for compliance?
384
385 - We prefer that you download the official DLL from the zlib
386 web site. If you need something peculiar from this DLL, you
387 can send your suggestion to the zlib mailing list.
388
389 However, in case you do rebuild the DLL yourself, you can run
390 it with the test programs found in the DLL distribution.
391 Running these test programs is not a guarantee of compliance,
392 but a failure can imply a detected problem.
393
394 **
395
396 This document is written and maintained by
397 Cosmin Truta <[email protected]>
398
--- compat/zlib/win32/DLL_FAQ.txt
+++ compat/zlib/win32/DLL_FAQ.txt
@@ -1,25 +1,21 @@
1
2 Frequently Asked Questions about ZLIB1.DLL
3
4
5 This document describes the design, the rationale, and the usage
6 of the common DLL build of zlib, named ZLIB1.DLL. If you have
7 general questions about zlib, you should see the file "FAQ" found
8 in the zlib distribution, or at the following location:
9 http://www.gzip.org/zlib/zlib_faq.html
10
11
12 1. What is ZLIB1.DLL, and how can I get it?
13
14 - ZLIB1.DLL is the common build of zlib as a DLL.
15 (Please remark the character '1' in the name.)
16
 
 
 
 
17 Applications that link to ZLIB1.DLL can rely on the following
18 specification:
19
20 * The exported symbols are exclusively defined in the source
21 files "zlib.h" and "zlib.def", found in an official zlib
@@ -377,21 +373,9 @@
373 - No. A legitimate build of ZLIB1.DLL must provide the complete
374 zlib functionality, as implemented in the official zlib source
375 code. But you can make your own private DLL build, under a
376 different file name, as suggested in the previous answer.
377
 
 
 
 
 
 
 
 
 
 
 
 
378 **
379
380 This document is written and maintained by
381 Cosmin Truta <[email protected]>
382
--- compat/zlib/win32/README-WIN32.txt
+++ compat/zlib/win32/README-WIN32.txt
@@ -1,8 +1,8 @@
11
ZLIB DATA COMPRESSION LIBRARY
22
3
-zlib 1.3.0 is a general purpose data compression library. All the code is
3
+zlib 1.3.1 is a general purpose data compression library. All the code is
44
thread safe. The data format used by the zlib library is described by RFCs
55
(Request for Comments) 1950 to 1952 in the files
66
http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
77
and rfc1952.txt (gzip format).
88
@@ -14,17 +14,17 @@
1414
Questions about zlib should be sent to <[email protected]>. The zlib home page
1515
is http://zlib.net/ . Before reporting a problem, please check this site to
1616
verify that you have the latest version of zlib; otherwise get the latest
1717
version and check whether the problem still exists or not.
1818
19
-PLEASE read DLL_FAQ.txt, and the the zlib FAQ http://zlib.net/zlib_faq.html
20
-before asking for help.
19
+PLEASE read DLL_FAQ.txt, and the zlib FAQ http://zlib.net/zlib_faq.html before
20
+asking for help.
2121
2222
2323
Manifest:
2424
25
-The package zlib-1.3.0-win32-x86.zip will contain the following files:
25
+The package zlib-1.3.1-win32-x86.zip will contain the following files:
2626
2727
README-WIN32.txt This document
2828
ChangeLog Changes since previous zlib packages
2929
DLL_FAQ.txt Frequently asked questions about zlib1.dll
3030
zlib.3.pdf Documentation of this library in Adobe Acrobat format
3131
--- compat/zlib/win32/README-WIN32.txt
+++ compat/zlib/win32/README-WIN32.txt
@@ -1,8 +1,8 @@
1 ZLIB DATA COMPRESSION LIBRARY
2
3 zlib 1.3.0 is a general purpose data compression library. All the code is
4 thread safe. The data format used by the zlib library is described by RFCs
5 (Request for Comments) 1950 to 1952 in the files
6 http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
7 and rfc1952.txt (gzip format).
8
@@ -14,17 +14,17 @@
14 Questions about zlib should be sent to <[email protected]>. The zlib home page
15 is http://zlib.net/ . Before reporting a problem, please check this site to
16 verify that you have the latest version of zlib; otherwise get the latest
17 version and check whether the problem still exists or not.
18
19 PLEASE read DLL_FAQ.txt, and the the zlib FAQ http://zlib.net/zlib_faq.html
20 before asking for help.
21
22
23 Manifest:
24
25 The package zlib-1.3.0-win32-x86.zip will contain the following files:
26
27 README-WIN32.txt This document
28 ChangeLog Changes since previous zlib packages
29 DLL_FAQ.txt Frequently asked questions about zlib1.dll
30 zlib.3.pdf Documentation of this library in Adobe Acrobat format
31
--- compat/zlib/win32/README-WIN32.txt
+++ compat/zlib/win32/README-WIN32.txt
@@ -1,8 +1,8 @@
1 ZLIB DATA COMPRESSION LIBRARY
2
3 zlib 1.3.1 is a general purpose data compression library. All the code is
4 thread safe. The data format used by the zlib library is described by RFCs
5 (Request for Comments) 1950 to 1952 in the files
6 http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
7 and rfc1952.txt (gzip format).
8
@@ -14,17 +14,17 @@
14 Questions about zlib should be sent to <[email protected]>. The zlib home page
15 is http://zlib.net/ . Before reporting a problem, please check this site to
16 verify that you have the latest version of zlib; otherwise get the latest
17 version and check whether the problem still exists or not.
18
19 PLEASE read DLL_FAQ.txt, and the zlib FAQ http://zlib.net/zlib_faq.html before
20 asking for help.
21
22
23 Manifest:
24
25 The package zlib-1.3.1-win32-x86.zip will contain the following files:
26
27 README-WIN32.txt This document
28 ChangeLog Changes since previous zlib packages
29 DLL_FAQ.txt Frequently asked questions about zlib1.dll
30 zlib.3.pdf Documentation of this library in Adobe Acrobat format
31
--- compat/zlib/zconf.h
+++ compat/zlib/zconf.h
@@ -1,7 +1,7 @@
11
/* zconf.h -- configuration of the zlib compression library
2
- * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
2
+ * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
/* @(#) $Id$ */
77
@@ -298,18 +298,10 @@
298298
# else
299299
# define OF(args) ()
300300
# endif
301301
#endif
302302
303
-#ifndef Z_ARG /* function prototypes for stdarg */
304
-# if defined(STDC) || defined(Z_HAVE_STDARG_H)
305
-# define Z_ARG(args) args
306
-# else
307
-# define Z_ARG(args) ()
308
-# endif
309
-#endif
310
-
311303
/* The following definitions for FAR are needed only for MSDOS mixed
312304
* model programming (small or medium model with some far allocations).
313305
* This was tested only with MSC; for other MSDOS compilers you may have
314306
* to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
315307
* just define FAR to be empty.
316308
--- compat/zlib/zconf.h
+++ compat/zlib/zconf.h
@@ -1,7 +1,7 @@
1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* @(#) $Id$ */
7
@@ -298,18 +298,10 @@
298 # else
299 # define OF(args) ()
300 # endif
301 #endif
302
303 #ifndef Z_ARG /* function prototypes for stdarg */
304 # if defined(STDC) || defined(Z_HAVE_STDARG_H)
305 # define Z_ARG(args) args
306 # else
307 # define Z_ARG(args) ()
308 # endif
309 #endif
310
311 /* The following definitions for FAR are needed only for MSDOS mixed
312 * model programming (small or medium model with some far allocations).
313 * This was tested only with MSC; for other MSDOS compilers you may have
314 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
315 * just define FAR to be empty.
316
--- compat/zlib/zconf.h
+++ compat/zlib/zconf.h
@@ -1,7 +1,7 @@
1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* @(#) $Id$ */
7
@@ -298,18 +298,10 @@
298 # else
299 # define OF(args) ()
300 # endif
301 #endif
302
 
 
 
 
 
 
 
 
303 /* The following definitions for FAR are needed only for MSDOS mixed
304 * model programming (small or medium model with some far allocations).
305 * This was tested only with MSC; for other MSDOS compilers you may have
306 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
307 * just define FAR to be empty.
308
--- compat/zlib/zconf.h.cmakein
+++ compat/zlib/zconf.h.cmakein
@@ -1,7 +1,7 @@
11
/* zconf.h -- configuration of the zlib compression library
2
- * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
2
+ * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
/* @(#) $Id$ */
77
@@ -300,18 +300,10 @@
300300
# else
301301
# define OF(args) ()
302302
# endif
303303
#endif
304304
305
-#ifndef Z_ARG /* function prototypes for stdarg */
306
-# if defined(STDC) || defined(Z_HAVE_STDARG_H)
307
-# define Z_ARG(args) args
308
-# else
309
-# define Z_ARG(args) ()
310
-# endif
311
-#endif
312
-
313305
/* The following definitions for FAR are needed only for MSDOS mixed
314306
* model programming (small or medium model with some far allocations).
315307
* This was tested only with MSC; for other MSDOS compilers you may have
316308
* to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
317309
* just define FAR to be empty.
318310
--- compat/zlib/zconf.h.cmakein
+++ compat/zlib/zconf.h.cmakein
@@ -1,7 +1,7 @@
1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* @(#) $Id$ */
7
@@ -300,18 +300,10 @@
300 # else
301 # define OF(args) ()
302 # endif
303 #endif
304
305 #ifndef Z_ARG /* function prototypes for stdarg */
306 # if defined(STDC) || defined(Z_HAVE_STDARG_H)
307 # define Z_ARG(args) args
308 # else
309 # define Z_ARG(args) ()
310 # endif
311 #endif
312
313 /* The following definitions for FAR are needed only for MSDOS mixed
314 * model programming (small or medium model with some far allocations).
315 * This was tested only with MSC; for other MSDOS compilers you may have
316 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
317 * just define FAR to be empty.
318
--- compat/zlib/zconf.h.cmakein
+++ compat/zlib/zconf.h.cmakein
@@ -1,7 +1,7 @@
1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* @(#) $Id$ */
7
@@ -300,18 +300,10 @@
300 # else
301 # define OF(args) ()
302 # endif
303 #endif
304
 
 
 
 
 
 
 
 
305 /* The following definitions for FAR are needed only for MSDOS mixed
306 * model programming (small or medium model with some far allocations).
307 * This was tested only with MSC; for other MSDOS compilers you may have
308 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
309 * just define FAR to be empty.
310
--- compat/zlib/zconf.h.in
+++ compat/zlib/zconf.h.in
@@ -1,7 +1,7 @@
11
/* zconf.h -- configuration of the zlib compression library
2
- * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
2
+ * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
/* @(#) $Id$ */
77
@@ -298,18 +298,10 @@
298298
# else
299299
# define OF(args) ()
300300
# endif
301301
#endif
302302
303
-#ifndef Z_ARG /* function prototypes for stdarg */
304
-# if defined(STDC) || defined(Z_HAVE_STDARG_H)
305
-# define Z_ARG(args) args
306
-# else
307
-# define Z_ARG(args) ()
308
-# endif
309
-#endif
310
-
311303
/* The following definitions for FAR are needed only for MSDOS mixed
312304
* model programming (small or medium model with some far allocations).
313305
* This was tested only with MSC; for other MSDOS compilers you may have
314306
* to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
315307
* just define FAR to be empty.
316308
--- compat/zlib/zconf.h.in
+++ compat/zlib/zconf.h.in
@@ -1,7 +1,7 @@
1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* @(#) $Id$ */
7
@@ -298,18 +298,10 @@
298 # else
299 # define OF(args) ()
300 # endif
301 #endif
302
303 #ifndef Z_ARG /* function prototypes for stdarg */
304 # if defined(STDC) || defined(Z_HAVE_STDARG_H)
305 # define Z_ARG(args) args
306 # else
307 # define Z_ARG(args) ()
308 # endif
309 #endif
310
311 /* The following definitions for FAR are needed only for MSDOS mixed
312 * model programming (small or medium model with some far allocations).
313 * This was tested only with MSC; for other MSDOS compilers you may have
314 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
315 * just define FAR to be empty.
316
--- compat/zlib/zconf.h.in
+++ compat/zlib/zconf.h.in
@@ -1,7 +1,7 @@
1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* @(#) $Id$ */
7
@@ -298,18 +298,10 @@
298 # else
299 # define OF(args) ()
300 # endif
301 #endif
302
 
 
 
 
 
 
 
 
303 /* The following definitions for FAR are needed only for MSDOS mixed
304 * model programming (small or medium model with some far allocations).
305 * This was tested only with MSC; for other MSDOS compilers you may have
306 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
307 * just define FAR to be empty.
308
--- compat/zlib/zlib.3
+++ compat/zlib/zlib.3
@@ -1,6 +1,6 @@
1
-.TH ZLIB 3 "18 Aug 2023"
1
+.TH ZLIB 3 "22 Jan 2024"
22
.SH NAME
33
zlib \- compression/decompression library
44
.SH SYNOPSIS
55
[see
66
.I zlib.h
@@ -103,13 +103,13 @@
103103
.LP
104104
before asking for help.
105105
Send questions and/or comments to [email protected],
106106
or (for the Windows DLL version) to Gilles Vollant ([email protected]).
107107
.SH AUTHORS AND LICENSE
108
-Version 1.3
108
+Version 1.3.1
109109
.LP
110
-Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
110
+Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
111111
.LP
112112
This software is provided 'as-is', without any express or implied
113113
warranty. In no event will the authors be held liable for any damages
114114
arising from the use of this software.
115115
.LP
116116
--- compat/zlib/zlib.3
+++ compat/zlib/zlib.3
@@ -1,6 +1,6 @@
1 .TH ZLIB 3 "18 Aug 2023"
2 .SH NAME
3 zlib \- compression/decompression library
4 .SH SYNOPSIS
5 [see
6 .I zlib.h
@@ -103,13 +103,13 @@
103 .LP
104 before asking for help.
105 Send questions and/or comments to [email protected],
106 or (for the Windows DLL version) to Gilles Vollant ([email protected]).
107 .SH AUTHORS AND LICENSE
108 Version 1.3
109 .LP
110 Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
111 .LP
112 This software is provided 'as-is', without any express or implied
113 warranty. In no event will the authors be held liable for any damages
114 arising from the use of this software.
115 .LP
116
--- compat/zlib/zlib.3
+++ compat/zlib/zlib.3
@@ -1,6 +1,6 @@
1 .TH ZLIB 3 "22 Jan 2024"
2 .SH NAME
3 zlib \- compression/decompression library
4 .SH SYNOPSIS
5 [see
6 .I zlib.h
@@ -103,13 +103,13 @@
103 .LP
104 before asking for help.
105 Send questions and/or comments to [email protected],
106 or (for the Windows DLL version) to Gilles Vollant ([email protected]).
107 .SH AUTHORS AND LICENSE
108 Version 1.3.1
109 .LP
110 Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
111 .LP
112 This software is provided 'as-is', without any express or implied
113 warranty. In no event will the authors be held liable for any damages
114 arising from the use of this software.
115 .LP
116
--- compat/zlib/zlib.3.pdf
+++ compat/zlib/zlib.3.pdf
cannot compute difference between binary files
11
--- compat/zlib/zlib.3.pdf
+++ compat/zlib/zlib.3.pdf
0 annot compute difference between binary files
1
--- compat/zlib/zlib.3.pdf
+++ compat/zlib/zlib.3.pdf
0 annot compute difference between binary files
1
+11 -11
--- compat/zlib/zlib.h
+++ compat/zlib/zlib.h
@@ -1,9 +1,9 @@
11
/* zlib.h -- interface of the 'zlib' general purpose compression library
2
- version 1.3, August 18th, 2023
2
+ version 1.3.1, January 22nd, 2024
33
4
- Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
4
+ Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
55
66
This software is provided 'as-is', without any express or implied
77
warranty. In no event will the authors be held liable for any damages
88
arising from the use of this software.
99
@@ -35,15 +35,15 @@
3535
3636
#ifdef __cplusplus
3737
extern "C" {
3838
#endif
3939
40
-#define ZLIB_VERSION "1.3"
41
-#define ZLIB_VERNUM 0x1300
40
+#define ZLIB_VERSION "1.3.1"
41
+#define ZLIB_VERNUM 0x1310
4242
#define ZLIB_VER_MAJOR 1
4343
#define ZLIB_VER_MINOR 3
44
-#define ZLIB_VER_REVISION 0
44
+#define ZLIB_VER_REVISION 1
4545
#define ZLIB_VER_SUBREVISION 0
4646
4747
/*
4848
The 'zlib' compression library provides in-memory compression and
4949
decompression functions, including integrity checks of the uncompressed data.
@@ -934,14 +934,14 @@
934934
pattern are full flush points.
935935
936936
inflateSync returns Z_OK if a possible full flush point has been found,
937937
Z_BUF_ERROR if no more input was provided, Z_DATA_ERROR if no flush point
938938
has been found, or Z_STREAM_ERROR if the stream structure was inconsistent.
939
- In the success case, the application may save the current current value of
940
- total_in which indicates where valid compressed data was found. In the
941
- error case, the application may repeatedly call inflateSync, providing more
942
- input each time, until success or end of the input data.
939
+ In the success case, the application may save the current value of total_in
940
+ which indicates where valid compressed data was found. In the error case,
941
+ the application may repeatedly call inflateSync, providing more input each
942
+ time, until success or end of the input data.
943943
*/
944944
945945
ZEXTERN int ZEXPORT inflateCopy(z_streamp dest,
946946
z_streamp source);
947947
/*
@@ -1756,18 +1756,18 @@
17561756
17571757
Combine two CRC-32 check values into one. For two sequences of bytes,
17581758
seq1 and seq2 with lengths len1 and len2, CRC-32 check values were
17591759
calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32
17601760
check value of seq1 and seq2 concatenated, requiring only crc1, crc2, and
1761
- len2.
1761
+ len2. len2 must be non-negative.
17621762
*/
17631763
17641764
/*
17651765
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t len2);
17661766
17671767
Return the operator corresponding to length len2, to be used with
1768
- crc32_combine_op().
1768
+ crc32_combine_op(). len2 must be non-negative.
17691769
*/
17701770
17711771
ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op);
17721772
/*
17731773
Give the same result as crc32_combine(), using op in place of len2. op is
17741774
--- compat/zlib/zlib.h
+++ compat/zlib/zlib.h
@@ -1,9 +1,9 @@
1 /* zlib.h -- interface of the 'zlib' general purpose compression library
2 version 1.3, August 18th, 2023
3
4 Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
5
6 This software is provided 'as-is', without any express or implied
7 warranty. In no event will the authors be held liable for any damages
8 arising from the use of this software.
9
@@ -35,15 +35,15 @@
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 #define ZLIB_VERSION "1.3"
41 #define ZLIB_VERNUM 0x1300
42 #define ZLIB_VER_MAJOR 1
43 #define ZLIB_VER_MINOR 3
44 #define ZLIB_VER_REVISION 0
45 #define ZLIB_VER_SUBREVISION 0
46
47 /*
48 The 'zlib' compression library provides in-memory compression and
49 decompression functions, including integrity checks of the uncompressed data.
@@ -934,14 +934,14 @@
934 pattern are full flush points.
935
936 inflateSync returns Z_OK if a possible full flush point has been found,
937 Z_BUF_ERROR if no more input was provided, Z_DATA_ERROR if no flush point
938 has been found, or Z_STREAM_ERROR if the stream structure was inconsistent.
939 In the success case, the application may save the current current value of
940 total_in which indicates where valid compressed data was found. In the
941 error case, the application may repeatedly call inflateSync, providing more
942 input each time, until success or end of the input data.
943 */
944
945 ZEXTERN int ZEXPORT inflateCopy(z_streamp dest,
946 z_streamp source);
947 /*
@@ -1756,18 +1756,18 @@
1756
1757 Combine two CRC-32 check values into one. For two sequences of bytes,
1758 seq1 and seq2 with lengths len1 and len2, CRC-32 check values were
1759 calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32
1760 check value of seq1 and seq2 concatenated, requiring only crc1, crc2, and
1761 len2.
1762 */
1763
1764 /*
1765 ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t len2);
1766
1767 Return the operator corresponding to length len2, to be used with
1768 crc32_combine_op().
1769 */
1770
1771 ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op);
1772 /*
1773 Give the same result as crc32_combine(), using op in place of len2. op is
1774
--- compat/zlib/zlib.h
+++ compat/zlib/zlib.h
@@ -1,9 +1,9 @@
1 /* zlib.h -- interface of the 'zlib' general purpose compression library
2 version 1.3.1, January 22nd, 2024
3
4 Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
5
6 This software is provided 'as-is', without any express or implied
7 warranty. In no event will the authors be held liable for any damages
8 arising from the use of this software.
9
@@ -35,15 +35,15 @@
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 #define ZLIB_VERSION "1.3.1"
41 #define ZLIB_VERNUM 0x1310
42 #define ZLIB_VER_MAJOR 1
43 #define ZLIB_VER_MINOR 3
44 #define ZLIB_VER_REVISION 1
45 #define ZLIB_VER_SUBREVISION 0
46
47 /*
48 The 'zlib' compression library provides in-memory compression and
49 decompression functions, including integrity checks of the uncompressed data.
@@ -934,14 +934,14 @@
934 pattern are full flush points.
935
936 inflateSync returns Z_OK if a possible full flush point has been found,
937 Z_BUF_ERROR if no more input was provided, Z_DATA_ERROR if no flush point
938 has been found, or Z_STREAM_ERROR if the stream structure was inconsistent.
939 In the success case, the application may save the current value of total_in
940 which indicates where valid compressed data was found. In the error case,
941 the application may repeatedly call inflateSync, providing more input each
942 time, until success or end of the input data.
943 */
944
945 ZEXTERN int ZEXPORT inflateCopy(z_streamp dest,
946 z_streamp source);
947 /*
@@ -1756,18 +1756,18 @@
1756
1757 Combine two CRC-32 check values into one. For two sequences of bytes,
1758 seq1 and seq2 with lengths len1 and len2, CRC-32 check values were
1759 calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32
1760 check value of seq1 and seq2 concatenated, requiring only crc1, crc2, and
1761 len2. len2 must be non-negative.
1762 */
1763
1764 /*
1765 ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t len2);
1766
1767 Return the operator corresponding to length len2, to be used with
1768 crc32_combine_op(). len2 must be non-negative.
1769 */
1770
1771 ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op);
1772 /*
1773 Give the same result as crc32_combine(), using op in place of len2. op is
1774
+100 -100
--- compat/zlib/zlib.map
+++ compat/zlib/zlib.map
@@ -1,100 +1,100 @@
1
-ZLIB_1.2.0 {
2
- global:
3
- compressBound;
4
- deflateBound;
5
- inflateBack;
6
- inflateBackEnd;
7
- inflateBackInit_;
8
- inflateCopy;
9
- local:
10
- deflate_copyright;
11
- inflate_copyright;
12
- inflate_fast;
13
- inflate_table;
14
- zcalloc;
15
- zcfree;
16
- z_errmsg;
17
- gz_error;
18
- gz_intmax;
19
- _*;
20
-};
21
-
22
-ZLIB_1.2.0.2 {
23
- gzclearerr;
24
- gzungetc;
25
- zlibCompileFlags;
26
-} ZLIB_1.2.0;
27
-
28
-ZLIB_1.2.0.8 {
29
- deflatePrime;
30
-} ZLIB_1.2.0.2;
31
-
32
-ZLIB_1.2.2 {
33
- adler32_combine;
34
- crc32_combine;
35
- deflateSetHeader;
36
- inflateGetHeader;
37
-} ZLIB_1.2.0.8;
38
-
39
-ZLIB_1.2.2.3 {
40
- deflateTune;
41
- gzdirect;
42
-} ZLIB_1.2.2;
43
-
44
-ZLIB_1.2.2.4 {
45
- inflatePrime;
46
-} ZLIB_1.2.2.3;
47
-
48
-ZLIB_1.2.3.3 {
49
- adler32_combine64;
50
- crc32_combine64;
51
- gzopen64;
52
- gzseek64;
53
- gztell64;
54
- inflateUndermine;
55
-} ZLIB_1.2.2.4;
56
-
57
-ZLIB_1.2.3.4 {
58
- inflateReset2;
59
- inflateMark;
60
-} ZLIB_1.2.3.3;
61
-
62
-ZLIB_1.2.3.5 {
63
- gzbuffer;
64
- gzoffset;
65
- gzoffset64;
66
- gzclose_r;
67
- gzclose_w;
68
-} ZLIB_1.2.3.4;
69
-
70
-ZLIB_1.2.5.1 {
71
- deflatePending;
72
-} ZLIB_1.2.3.5;
73
-
74
-ZLIB_1.2.5.2 {
75
- deflateResetKeep;
76
- gzgetc_;
77
- inflateResetKeep;
78
-} ZLIB_1.2.5.1;
79
-
80
-ZLIB_1.2.7.1 {
81
- inflateGetDictionary;
82
- gzvprintf;
83
-} ZLIB_1.2.5.2;
84
-
85
-ZLIB_1.2.9 {
86
- inflateCodesUsed;
87
- inflateValidate;
88
- uncompress2;
89
- gzfread;
90
- gzfwrite;
91
- deflateGetDictionary;
92
- adler32_z;
93
- crc32_z;
94
-} ZLIB_1.2.7.1;
95
-
96
-ZLIB_1.2.12 {
97
- crc32_combine_gen;
98
- crc32_combine_gen64;
99
- crc32_combine_op;
100
-} ZLIB_1.2.9;
1
+ZLIB_1.2.0 {
2
+ global:
3
+ compressBound;
4
+ deflateBound;
5
+ inflateBack;
6
+ inflateBackEnd;
7
+ inflateBackInit_;
8
+ inflateCopy;
9
+ local:
10
+ deflate_copyright;
11
+ inflate_copyright;
12
+ inflate_fast;
13
+ inflate_table;
14
+ zcalloc;
15
+ zcfree;
16
+ z_errmsg;
17
+ gz_error;
18
+ gz_intmax;
19
+ _*;
20
+};
21
+
22
+ZLIB_1.2.0.2 {
23
+ gzclearerr;
24
+ gzungetc;
25
+ zlibCompileFlags;
26
+} ZLIB_1.2.0;
27
+
28
+ZLIB_1.2.0.8 {
29
+ deflatePrime;
30
+} ZLIB_1.2.0.2;
31
+
32
+ZLIB_1.2.2 {
33
+ adler32_combine;
34
+ crc32_combine;
35
+ deflateSetHeader;
36
+ inflateGetHeader;
37
+} ZLIB_1.2.0.8;
38
+
39
+ZLIB_1.2.2.3 {
40
+ deflateTune;
41
+ gzdirect;
42
+} ZLIB_1.2.2;
43
+
44
+ZLIB_1.2.2.4 {
45
+ inflatePrime;
46
+} ZLIB_1.2.2.3;
47
+
48
+ZLIB_1.2.3.3 {
49
+ adler32_combine64;
50
+ crc32_combine64;
51
+ gzopen64;
52
+ gzseek64;
53
+ gztell64;
54
+ inflateUndermine;
55
+} ZLIB_1.2.2.4;
56
+
57
+ZLIB_1.2.3.4 {
58
+ inflateReset2;
59
+ inflateMark;
60
+} ZLIB_1.2.3.3;
61
+
62
+ZLIB_1.2.3.5 {
63
+ gzbuffer;
64
+ gzoffset;
65
+ gzoffset64;
66
+ gzclose_r;
67
+ gzclose_w;
68
+} ZLIB_1.2.3.4;
69
+
70
+ZLIB_1.2.5.1 {
71
+ deflatePending;
72
+} ZLIB_1.2.3.5;
73
+
74
+ZLIB_1.2.5.2 {
75
+ deflateResetKeep;
76
+ gzgetc_;
77
+ inflateResetKeep;
78
+} ZLIB_1.2.5.1;
79
+
80
+ZLIB_1.2.7.1 {
81
+ inflateGetDictionary;
82
+ gzvprintf;
83
+} ZLIB_1.2.5.2;
84
+
85
+ZLIB_1.2.9 {
86
+ inflateCodesUsed;
87
+ inflateValidate;
88
+ uncompress2;
89
+ gzfread;
90
+ gzfwrite;
91
+ deflateGetDictionary;
92
+ adler32_z;
93
+ crc32_z;
94
+} ZLIB_1.2.7.1;
95
+
96
+ZLIB_1.2.12 {
97
+ crc32_combine_gen;
98
+ crc32_combine_gen64;
99
+ crc32_combine_op;
100
+} ZLIB_1.2.9;
101101
--- compat/zlib/zlib.map
+++ compat/zlib/zlib.map
@@ -1,100 +1,100 @@
1 ZLIB_1.2.0 {
2 global:
3 compressBound;
4 deflateBound;
5 inflateBack;
6 inflateBackEnd;
7 inflateBackInit_;
8 inflateCopy;
9 local:
10 deflate_copyright;
11 inflate_copyright;
12 inflate_fast;
13 inflate_table;
14 zcalloc;
15 zcfree;
16 z_errmsg;
17 gz_error;
18 gz_intmax;
19 _*;
20 };
21
22 ZLIB_1.2.0.2 {
23 gzclearerr;
24 gzungetc;
25 zlibCompileFlags;
26 } ZLIB_1.2.0;
27
28 ZLIB_1.2.0.8 {
29 deflatePrime;
30 } ZLIB_1.2.0.2;
31
32 ZLIB_1.2.2 {
33 adler32_combine;
34 crc32_combine;
35 deflateSetHeader;
36 inflateGetHeader;
37 } ZLIB_1.2.0.8;
38
39 ZLIB_1.2.2.3 {
40 deflateTune;
41 gzdirect;
42 } ZLIB_1.2.2;
43
44 ZLIB_1.2.2.4 {
45 inflatePrime;
46 } ZLIB_1.2.2.3;
47
48 ZLIB_1.2.3.3 {
49 adler32_combine64;
50 crc32_combine64;
51 gzopen64;
52 gzseek64;
53 gztell64;
54 inflateUndermine;
55 } ZLIB_1.2.2.4;
56
57 ZLIB_1.2.3.4 {
58 inflateReset2;
59 inflateMark;
60 } ZLIB_1.2.3.3;
61
62 ZLIB_1.2.3.5 {
63 gzbuffer;
64 gzoffset;
65 gzoffset64;
66 gzclose_r;
67 gzclose_w;
68 } ZLIB_1.2.3.4;
69
70 ZLIB_1.2.5.1 {
71 deflatePending;
72 } ZLIB_1.2.3.5;
73
74 ZLIB_1.2.5.2 {
75 deflateResetKeep;
76 gzgetc_;
77 inflateResetKeep;
78 } ZLIB_1.2.5.1;
79
80 ZLIB_1.2.7.1 {
81 inflateGetDictionary;
82 gzvprintf;
83 } ZLIB_1.2.5.2;
84
85 ZLIB_1.2.9 {
86 inflateCodesUsed;
87 inflateValidate;
88 uncompress2;
89 gzfread;
90 gzfwrite;
91 deflateGetDictionary;
92 adler32_z;
93 crc32_z;
94 } ZLIB_1.2.7.1;
95
96 ZLIB_1.2.12 {
97 crc32_combine_gen;
98 crc32_combine_gen64;
99 crc32_combine_op;
100 } ZLIB_1.2.9;
101
--- compat/zlib/zlib.map
+++ compat/zlib/zlib.map
@@ -1,100 +1,100 @@
1 ZLIB_1.2.0 {
2 global:
3 compressBound;
4 deflateBound;
5 inflateBack;
6 inflateBackEnd;
7 inflateBackInit_;
8 inflateCopy;
9 local:
10 deflate_copyright;
11 inflate_copyright;
12 inflate_fast;
13 inflate_table;
14 zcalloc;
15 zcfree;
16 z_errmsg;
17 gz_error;
18 gz_intmax;
19 _*;
20 };
21
22 ZLIB_1.2.0.2 {
23 gzclearerr;
24 gzungetc;
25 zlibCompileFlags;
26 } ZLIB_1.2.0;
27
28 ZLIB_1.2.0.8 {
29 deflatePrime;
30 } ZLIB_1.2.0.2;
31
32 ZLIB_1.2.2 {
33 adler32_combine;
34 crc32_combine;
35 deflateSetHeader;
36 inflateGetHeader;
37 } ZLIB_1.2.0.8;
38
39 ZLIB_1.2.2.3 {
40 deflateTune;
41 gzdirect;
42 } ZLIB_1.2.2;
43
44 ZLIB_1.2.2.4 {
45 inflatePrime;
46 } ZLIB_1.2.2.3;
47
48 ZLIB_1.2.3.3 {
49 adler32_combine64;
50 crc32_combine64;
51 gzopen64;
52 gzseek64;
53 gztell64;
54 inflateUndermine;
55 } ZLIB_1.2.2.4;
56
57 ZLIB_1.2.3.4 {
58 inflateReset2;
59 inflateMark;
60 } ZLIB_1.2.3.3;
61
62 ZLIB_1.2.3.5 {
63 gzbuffer;
64 gzoffset;
65 gzoffset64;
66 gzclose_r;
67 gzclose_w;
68 } ZLIB_1.2.3.4;
69
70 ZLIB_1.2.5.1 {
71 deflatePending;
72 } ZLIB_1.2.3.5;
73
74 ZLIB_1.2.5.2 {
75 deflateResetKeep;
76 gzgetc_;
77 inflateResetKeep;
78 } ZLIB_1.2.5.1;
79
80 ZLIB_1.2.7.1 {
81 inflateGetDictionary;
82 gzvprintf;
83 } ZLIB_1.2.5.2;
84
85 ZLIB_1.2.9 {
86 inflateCodesUsed;
87 inflateValidate;
88 uncompress2;
89 gzfread;
90 gzfwrite;
91 deflateGetDictionary;
92 adler32_z;
93 crc32_z;
94 } ZLIB_1.2.7.1;
95
96 ZLIB_1.2.12 {
97 crc32_combine_gen;
98 crc32_combine_gen64;
99 crc32_combine_op;
100 } ZLIB_1.2.9;
101
--- compat/zlib/zutil.h
+++ compat/zlib/zutil.h
@@ -1,7 +1,7 @@
11
/* zutil.h -- internal interface and configuration of the compression library
2
- * Copyright (C) 1995-2022 Jean-loup Gailly, Mark Adler
2
+ * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55
66
/* WARNING: this file should *not* be used by applications. It is
77
part of the implementation of the compression library and is
@@ -54,11 +54,11 @@
5454
#endif
5555
5656
extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
5757
/* (size given to avoid silly warnings with Visual C++) */
5858
59
-#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
59
+#define ERR_MSG(err) z_errmsg[(err) < -6 || (err) > 2 ? 9 : 2 - (err)]
6060
6161
#define ERR_RETURN(strm,err) \
6262
return (strm->msg = ERR_MSG(err), (err))
6363
/* To be used only when the state is known to be valid */
6464
@@ -135,21 +135,12 @@
135135
# if defined(M_I86) && !defined(Z_SOLO)
136136
# include <malloc.h>
137137
# endif
138138
#endif
139139
140
-#if defined(MACOS) || defined(TARGET_OS_MAC)
140
+#if defined(MACOS)
141141
# define OS_CODE 7
142
-# ifndef Z_SOLO
143
-# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
144
-# include <unix.h> /* for fdopen */
145
-# else
146
-# ifndef fdopen
147
-# define fdopen(fd,mode) NULL /* No fdopen() */
148
-# endif
149
-# endif
150
-# endif
151142
#endif
152143
153144
#ifdef __acorn
154145
# define OS_CODE 13
155146
#endif
@@ -168,22 +159,10 @@
168159
169160
#ifdef __APPLE__
170161
# define OS_CODE 19
171162
#endif
172163
173
-#if defined(_BEOS_) || defined(RISCOS)
174
-# define fdopen(fd,mode) NULL /* No fdopen() */
175
-#endif
176
-
177
-#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
178
-# if defined(_WIN32_WCE)
179
-# define fdopen(fd,mode) NULL /* No fdopen() */
180
-# else
181
-# define fdopen(fd,type) _fdopen(fd,type)
182
-# endif
183
-#endif
184
-
185164
#if defined(__BORLANDC__) && !defined(MSDOS)
186165
#pragma warn -8004
187166
#pragma warn -8008
188167
#pragma warn -8066
189168
#endif
190169
--- compat/zlib/zutil.h
+++ compat/zlib/zutil.h
@@ -1,7 +1,7 @@
1 /* zutil.h -- internal interface and configuration of the compression library
2 * Copyright (C) 1995-2022 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
@@ -54,11 +54,11 @@
54 #endif
55
56 extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
57 /* (size given to avoid silly warnings with Visual C++) */
58
59 #define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
60
61 #define ERR_RETURN(strm,err) \
62 return (strm->msg = ERR_MSG(err), (err))
63 /* To be used only when the state is known to be valid */
64
@@ -135,21 +135,12 @@
135 # if defined(M_I86) && !defined(Z_SOLO)
136 # include <malloc.h>
137 # endif
138 #endif
139
140 #if defined(MACOS) || defined(TARGET_OS_MAC)
141 # define OS_CODE 7
142 # ifndef Z_SOLO
143 # if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
144 # include <unix.h> /* for fdopen */
145 # else
146 # ifndef fdopen
147 # define fdopen(fd,mode) NULL /* No fdopen() */
148 # endif
149 # endif
150 # endif
151 #endif
152
153 #ifdef __acorn
154 # define OS_CODE 13
155 #endif
@@ -168,22 +159,10 @@
168
169 #ifdef __APPLE__
170 # define OS_CODE 19
171 #endif
172
173 #if defined(_BEOS_) || defined(RISCOS)
174 # define fdopen(fd,mode) NULL /* No fdopen() */
175 #endif
176
177 #if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
178 # if defined(_WIN32_WCE)
179 # define fdopen(fd,mode) NULL /* No fdopen() */
180 # else
181 # define fdopen(fd,type) _fdopen(fd,type)
182 # endif
183 #endif
184
185 #if defined(__BORLANDC__) && !defined(MSDOS)
186 #pragma warn -8004
187 #pragma warn -8008
188 #pragma warn -8066
189 #endif
190
--- compat/zlib/zutil.h
+++ compat/zlib/zutil.h
@@ -1,7 +1,7 @@
1 /* zutil.h -- internal interface and configuration of the compression library
2 * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6 /* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
@@ -54,11 +54,11 @@
54 #endif
55
56 extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
57 /* (size given to avoid silly warnings with Visual C++) */
58
59 #define ERR_MSG(err) z_errmsg[(err) < -6 || (err) > 2 ? 9 : 2 - (err)]
60
61 #define ERR_RETURN(strm,err) \
62 return (strm->msg = ERR_MSG(err), (err))
63 /* To be used only when the state is known to be valid */
64
@@ -135,21 +135,12 @@
135 # if defined(M_I86) && !defined(Z_SOLO)
136 # include <malloc.h>
137 # endif
138 #endif
139
140 #if defined(MACOS)
141 # define OS_CODE 7
 
 
 
 
 
 
 
 
 
142 #endif
143
144 #ifdef __acorn
145 # define OS_CODE 13
146 #endif
@@ -168,22 +159,10 @@
159
160 #ifdef __APPLE__
161 # define OS_CODE 19
162 #endif
163
 
 
 
 
 
 
 
 
 
 
 
 
164 #if defined(__BORLANDC__) && !defined(MSDOS)
165 #pragma warn -8004
166 #pragma warn -8008
167 #pragma warn -8066
168 #endif
169

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button