Skip to content

Commit b0ca084

Browse files
nodejs-github-botrichardlau
authored andcommitted
deps: update zlib to 1.3-22124f5
PR-URL: #50910 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 4b43823 commit b0ca084

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

deps/zlib/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
cmake_minimum_required(VERSION 3.0)
1+
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.2.13.1")
6+
set(VERSION "1.3")
77

88
set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
99
set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")

deps/zlib/deflate.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* deflate.c -- compress data using the deflation algorithm
2-
* Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
2+
* Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55

@@ -65,7 +65,7 @@
6565
#endif
6666

6767
const char deflate_copyright[] =
68-
" deflate 1.2.13.1 Copyright 1995-2022 Jean-loup Gailly and Mark Adler ";
68+
" deflate 1.3 Copyright 1995-2023 Jean-loup Gailly and Mark Adler ";
6969
/*
7070
If you use the zlib library in a product, an acknowledgment is welcome
7171
in the documentation of your product. If for some reason you cannot

deps/zlib/inftrees.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* inftrees.c -- generate Huffman trees for efficient decoding
2-
* Copyright (C) 1995-2022 Mark Adler
2+
* Copyright (C) 1995-2023 Mark Adler
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55

@@ -9,7 +9,7 @@
99
#define MAXBITS 15
1010

1111
const char inflate_copyright[] =
12-
" inflate 1.2.13.1 Copyright 1995-2022 Mark Adler ";
12+
" inflate 1.3 Copyright 1995-2023 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
@@ -57,7 +57,7 @@ int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
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, 77, 76};
60+
19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 198, 203};
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,

deps/zlib/zlib.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* zlib.h -- interface of the 'zlib' general purpose compression library
2-
version 1.2.13.1, October xxth, 2022
2+
version 1.3, August 18th, 2023
33
4-
Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
4+
Copyright (C) 1995-2023 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
@@ -37,12 +37,12 @@
3737
extern "C" {
3838
#endif
3939

40-
#define ZLIB_VERSION "1.2.13.1-motley"
41-
#define ZLIB_VERNUM 0x12d1
40+
#define ZLIB_VERSION "1.3"
41+
#define ZLIB_VERNUM 0x1300
4242
#define ZLIB_VER_MAJOR 1
43-
#define ZLIB_VER_MINOR 2
44-
#define ZLIB_VER_REVISION 13
45-
#define ZLIB_VER_SUBREVISION 1
43+
#define ZLIB_VER_MINOR 3
44+
#define ZLIB_VER_REVISION 0
45+
#define ZLIB_VER_SUBREVISION 0
4646

4747
/*
4848
The 'zlib' compression library provides in-memory compression and
@@ -320,8 +320,8 @@ ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
320320
with the same value of the flush parameter and more output space (updated
321321
avail_out), until the flush is complete (deflate returns with non-zero
322322
avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that
323-
avail_out is greater than six to avoid repeated flush markers due to
324-
avail_out == 0 on return.
323+
avail_out is greater than six when the flush marker begins, in order to avoid
324+
repeated flush markers upon calling deflate() again when avail_out == 0.
325325
326326
If the parameter flush is set to Z_FINISH, pending input is processed,
327327
pending output is flushed and deflate returns with Z_STREAM_END if there was

doc/contributing/maintaining/maintaining-dependencies.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This a list of all the dependencies:
3030
* [uv][]
3131
* [uvwasi 0.0.19][]
3232
* [V8][]
33-
* [zlib 1.2.13.1-motley-5daffc7][]
33+
* [zlib 1.3-22124f5][]
3434

3535
Any code which meets one or more of these conditions should
3636
be managed as a dependency:
@@ -304,7 +304,7 @@ See [maintaining-web-assembly][] for more informations.
304304
high-performance JavaScript and WebAssembly engine, written in C++.
305305
See [maintaining-V8][] for more informations.
306306

307-
### zlib 1.2.13.1-motley-5daffc7
307+
### zlib 1.3-22124f5
308308

309309
The [zlib](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/zlib)
310310
dependency lossless data-compression library,
@@ -341,4 +341,4 @@ performance improvements not currently available in standard zlib.
341341
[uv]: #uv
342342
[uvwasi 0.0.19]: #uvwasi-0019
343343
[v8]: #v8
344-
[zlib 1.2.13.1-motley-5daffc7]: #zlib-12131-motley-5daffc7
344+
[zlib 1.3-22124f5]: #zlib-13-22124f5

0 commit comments

Comments
 (0)