GeezerVison is showing github.com — deps: update zlib to 1.2.13.1-motley-5daffc7 · nodejs/node@54c46da
File treeExpand file treeCollapse file tree Open diff view settings doc/contributing/maintaining
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: deps/zlib/crc32.c +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -792,8 +792,8 @@ unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf, | 792 | 792 | words = (z_word_t const *)buf; | 793 | 793 |
| 794 | 794 | /* Do endian check at execution time instead of compile time, since ARM | 795 | | - processors can change the endianess at execution time. If the | 796 | | - compiler knows what the endianess will be, it can optimize out the | | 795 | + processors can change the endianness at execution time. If the | | 796 | + compiler knows what the endianness will be, it can optimize out the | 797 | 797 | check and the unused branch. */ | 798 | 798 | endian = 1; | 799 | 799 | if (*(unsigned char *)&endian) { | |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/deflate.c +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -168,6 +168,11 @@ local const config configuration_table[10] = { | 168 | 168 | * bit values at the expense of memory usage). We slide even when level == 0 to | 169 | 169 | * keep the hash table consistent if we switch back to level > 0 later. | 170 | 170 | */ | | 171 | +#if defined(__has_feature) | | 172 | +# if __has_feature(memory_sanitizer) | | 173 | + __attribute__((no_sanitize("memory"))) | | 174 | +# endif | | 175 | +#endif | 171 | 176 | local void slide_hash(deflate_state *s) { | 172 | 177 | #if defined(DEFLATE_SLIDE_HASH_SSE2) || defined(DEFLATE_SLIDE_HASH_NEON) | 173 | 178 | slide_hash_simd(s->head, s->prev, s->w_size, s->hash_size); | |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/gzguts.h +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | # ifndef _LARGEFILE_SOURCE | 8 | 8 | # define _LARGEFILE_SOURCE 1 | 9 | 9 | # endif | 10 | | -# ifdef _FILE_OFFSET_BITS | 11 | | -# undef _FILE_OFFSET_BITS | 12 | | -# endif | | 10 | +# undef _FILE_OFFSET_BITS | | 11 | +# undef _TIME_BITS | 13 | 12 | #endif | 14 | 13 |
| 15 | 14 | #ifdef HAVE_HIDDEN | |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/gzlib.c +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -311,8 +311,8 @@ int ZEXPORT gzbuffer(gzFile file, unsigned size) { | 311 | 311 | /* check and set requested size */ | 312 | 312 | if ((size << 1) < size) | 313 | 313 | return -1; /* need to be able to double it */ | 314 | | - if (size < 2) | 315 | | - size = 2; /* need two bytes to check magic header */ | | 314 | + if (size < 8) | | 315 | + size = 8; /* needed to behave well with flushing */ | 316 | 316 | state->want = size; | 317 | 317 | return 0; | 318 | 318 | } | |
Collapse file Copy file name to clipboardExpand all lines: deps/zlib/zlib.h +8-5Lines changed: 8 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -230,7 +230,7 @@ ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level); | 230 | 230 | Initializes the internal stream state for compression. The fields | 231 | 231 | zalloc, zfree and opaque must be initialized before by the caller. If | 232 | 232 | zalloc and zfree are set to Z_NULL, deflateInit updates them to use default | 233 | | - allocation functions. | | 233 | + allocation functions. total_in, total_out, adler, and msg are initialized. | 234 | 234 |
| 235 | 235 | The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9: | 236 | 236 | 1 gives best speed, 9 gives best compression, 0 gives no compression at all | @@ -382,7 +382,8 @@ ZEXTERN int ZEXPORT inflateInit(z_streamp strm); | 382 | 382 | read or consumed. The allocation of a sliding window will be deferred to | 383 | 383 | the first call of inflate (if the decompression does not complete on the | 384 | 384 | first call). If zalloc and zfree are set to Z_NULL, inflateInit updates | 385 | | - them to use default allocation functions. | | 385 | + them to use default allocation functions. total_in, total_out, adler, and | | 386 | + msg are initialized. | 386 | 387 |
| 387 | 388 | inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough | 388 | 389 | memory, Z_VERSION_ERROR if the zlib library version is incompatible with the | @@ -695,7 +696,7 @@ ZEXTERN int ZEXPORT deflateReset(z_streamp strm); | 695 | 696 | This function is equivalent to deflateEnd followed by deflateInit, but | 696 | 697 | does not free and reallocate the internal compression state. The stream | 697 | 698 | will leave the compression level and any other attributes that may have been | 698 | | - set unchanged. | | 699 | + set unchanged. total_in, total_out, adler, and msg are initialized. | 699 | 700 |
| 700 | 701 | deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source | 701 | 702 | stream state was inconsistent (such as zalloc or state being Z_NULL). | @@ -820,8 +821,9 @@ ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm, | 820 | 821 | gzip file" and give up. | 821 | 822 |
| 822 | 823 | If deflateSetHeader is not used, the default gzip header has text false, | 823 | | - the time set to zero, and os set to 255, with no extra, name, or comment | 824 | | - fields. The gzip header is returned to the default state by deflateReset(). | | 824 | + the time set to zero, and os set to the current operating system, with no | | 825 | + extra, name, or comment fields. The gzip header is returned to the default | | 826 | + state by deflateReset(). | 825 | 827 |
| 826 | 828 | deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source | 827 | 829 | stream state was inconsistent. | @@ -960,6 +962,7 @@ ZEXTERN int ZEXPORT inflateReset(z_streamp strm); | 960 | 962 | This function is equivalent to inflateEnd followed by inflateInit, | 961 | 963 | but does not free and reallocate the internal decompression state. The | 962 | 964 | stream will keep attributes that may have been set by inflateInit2. | | 965 | + total_in, total_out, adler, and msg are initialized. | 963 | 966 |
| 964 | 967 | inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source | 965 | 968 | stream state was inconsistent (such as zalloc or state being Z_NULL). | |
Collapse file Copy file name to clipboardExpand all lines: doc/contributing/maintaining/maintaining-dependencies.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ This a list of all the dependencies: | 31 | 31 | * [undici 5.27.2][] | 32 | 32 | * [uvwasi 0.0.19][] | 33 | 33 | * [V8 11.3.244.8][] | 34 | | -* [zlib 1.2.13.1-motley-dfc48fc][] | | 34 | +* [zlib 1.2.13.1-motley-5daffc7][] | 35 | 35 |
| 36 | 36 | Any code which meets one or more of these conditions should | 37 | 37 | be managed as a dependency: | @@ -311,7 +311,7 @@ See [maintaining-web-assembly][] for more informations. | 311 | 311 | high-performance JavaScript and WebAssembly engine, written in C++. | 312 | 312 | See [maintaining-V8][] for more informations. | 313 | 313 |
| 314 | | -### zlib 1.2.13.1-motley-dfc48fc | | 314 | +### zlib 1.2.13.1-motley-5daffc7 | 315 | 315 |
| 316 | 316 | The [zlib](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/zlib) | 317 | 317 | dependency lossless data-compression library, | @@ -349,4 +349,4 @@ performance improvements not currently available in standard zlib. | 349 | 349 | [update-openssl-action]: ../../../.github/workflows/update-openssl.yml | 350 | 350 | [uvwasi 0.0.19]: #uvwasi-0019 | 351 | 351 | [v8 11.3.244.8]: #v8-1132448 | 352 | | -[zlib 1.2.13.1-motley-dfc48fc]: #zlib-12131-motley-dfc48fc | | 352 | +[zlib 1.2.13.1-motley-5daffc7]: #zlib-12131-motley-5daffc7 |
Collapse file Copy file name to clipboardExpand all lines: src/zlib_version.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | // Refer to tools/dep_updaters/update-zlib.sh | 3 | 3 | #ifndef SRC_ZLIB_VERSION_H_ | 4 | 4 | #define SRC_ZLIB_VERSION_H_ | 5 | | -#define ZLIB_VERSION "1.2.13.1-motley-dfc48fc" | | 5 | +#define ZLIB_VERSION "1.2.13.1-motley-5daffc7" | 6 | 6 | #endif // SRC_ZLIB_VERSION_H_ |
|