Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
d596803
doc: add path rules and validation for export targets in package.json
0hmX Jun 9, 2025
893999e
src: replace V8 Fast API todo comment with note comment
dario-piotrowicz Jun 9, 2025
a4d7560
test: close FileHandle objects in tests explicitly
jasnell Jun 9, 2025
713fbad
test_runner: support object property mocking
idango10 Jun 9, 2025
4347ce3
src: add new CopyUtimes function to reduce code duplication
dario-piotrowicz Jun 9, 2025
dc10238
deps: update zlib to 1.3.1-470d3a2
nodejs-github-bot Jun 10, 2025
80eac14
deps: update simdjson to 3.13.0
nodejs-github-bot Jun 10, 2025
3aa2762
deps: update sqlite to 3.50.1
nodejs-github-bot Jun 10, 2025
181014a
test: cleanup status files
panva Jun 10, 2025
e9c6fa5
src: replace std::array with static arrays in contextify
mertcanaltin Jun 10, 2025
85f062c
test: deflake async-hooks/test-improper-order on AIX
bakigul1 Jun 3, 2025
7e34aa4
test: skip tests failing when run under root
LiviaMedeiros Jun 10, 2025
839964e
fs: allow correct handling of burst in fs-events with AsyncIterator
pipobscure Jun 10, 2025
450f481
deps: update amaro to 1.0.0
nodejs-github-bot Jun 11, 2025
76e3c8a
test: update WPT for es-exceptions to 2f96fa1996
nodejs-github-bot Jun 11, 2025
aa657f0
test: split indirect eval import tests
legendecas Jun 11, 2025
a3c7a63
module: allow cycles in require() in the CJS handling in ESM loader
joyeecheung Jun 11, 2025
9b28f40
module: remove experimental warning from type stripping
marco-ippolito Jun 11, 2025
fa089d6
test: update WPT for dom/abort to dc928169ee
nodejs-github-bot Jun 11, 2025
94e53d4
test: update WPT for urlpattern to 3ffda23e5a
nodejs-github-bot Jun 1, 2025
b1f60d2
http2: add diagnostics channel 'http2.server.stream.close'
RaisinTen Jun 11, 2025
b11da11
http2: fix DEP0194 message
climba03003 Jun 11, 2025
afbaf92
tools: improve release proposal linter
aduh95 Jun 11, 2025
6390f70
lib,src: support DOMException ser-des
legendecas Jun 11, 2025
b6760b3
esm: syncify default path of `ModuleLoader.load`
JakobJingleheimer Jun 11, 2025
ffff8ce
typings: add ZSTD_COMPRESS, ZSTD_DECOMPRESS to internalBinding
nektro Jun 12, 2025
45f7d16
module: refactor commonjs typescript loader
marco-ippolito Jun 12, 2025
ff8a369
module: fix typescript import.meta.main
marco-ippolito Jun 12, 2025
c1f9791
tools: edit commit-queue workflow file
aduh95 Jun 12, 2025
1cc77c7
doc: punctuation fix for Node-API versioning clarification
jiacai2050 Jun 12, 2025
268c8c1
tools: remove config.status under `make distclean`
Renegade334 Jun 12, 2025
b22e970
tools: switch to `@stylistic/eslint-plugin`
targos Jun 13, 2025
ec808b3
test: use `common.skipIfInspectorDisabled()` to skip tests
dario-piotrowicz Jun 13, 2025
dfb0144
src: enhance error messages for unknown options
pmarchini Jun 13, 2025
e6a1787
tools: bump brace-expansion from 1.1.11 to 1.1.12 in /tools/eslint
dependabot[bot] Jun 14, 2025
dc2f23e
tools: bump `brace-expansion` in `/tools/clang-format`
dependabot[bot] Jun 14, 2025
ef0230a
url: add fileURLToPathBuffer API
jasnell Jun 12, 2025
b7e488c
test: refactor repl tab complete tests
dario-piotrowicz Jun 15, 2025
c39d570
test: reduce the use of private symbols in test-events-once.js
kt3k Jun 15, 2025
17df800
typings: add Atomics primordials
Renegade334 Jun 4, 2025
704b1fa
test: add tests for REPL custom evals
dario-piotrowicz Jun 15, 2025
841609a
doc: add islandryu to collaborators
islandryu Jun 16, 2025
fb4378b
fs: add UV_ENOSPC to list of things to pass to err directly
jackyzha0 Jun 16, 2025
6f7b895
util: inspect: do not crash on an Error stack pointing to itself
SamVerschueren Jun 16, 2025
82b18ba
repl: fix tab completion not working with computer string properties
dario-piotrowicz Jun 17, 2025
c9e7b5e
test_runner: prefer `Atomics` primordials
Renegade334 Jun 4, 2025
af18c0e
fs: remove IIFE in glob
LiviaMedeiros May 21, 2025
f125310
doc: run license-builder
github-actions[bot] Jun 18, 2025
62b5879
fs: avoid computing time coefficient constants in runtime
LiviaMedeiros Jun 18, 2025
7bb1246
doc: add history entry for TS support in hooks
aduh95 Jun 18, 2025
d94b184
test: deflake test-buffer-large-size-buffer-alloc
lpinca Jun 18, 2025
68671f4
deps: upgrade npm to 11.4.2
npm-cli-bot Jun 20, 2025
6e0ee39
test: skip the test if the buffer allocation fails
lpinca Jun 20, 2025
b5ff3f4
tools: include toolchain.gypi in abseil.gyp
legendecas Jun 20, 2025
be93091
inspector: add protocol methods retrieving sent/received data
legendecas Jun 20, 2025
e2e88d4
doc: fix wrong RFC number in http2
deokjinkim Jun 20, 2025
fa6854f
deps: update amaro to 1.1.0
nodejs-github-bot Jun 20, 2025
96c78d7
fs: make `Dir` disposers idempotent
Renegade334 Jun 20, 2025
4b61f10
deps: V8: cherry-pick e3df60f3f5ab
legendecas Jun 19, 2025
081c708
lib: make domexception a native error
legendecas Jun 12, 2025
a0b1378
src: pass resource on permission checks for spawn
RafaelGSS Jun 21, 2025
8eec789
test: correct SIMD support comment
richardlau Jun 21, 2025
9df1cfe
tools: make nodedownload module compatible with Python 3.14
frenzymadness Jun 22, 2025
3faa4e8
test: deflake test-buffer-large-size-buffer-alloc-unsafe
lpinca Jun 22, 2025
d9c2b70
test: refactor repl save-load tests
dario-piotrowicz Jun 22, 2025
d0e42ff
repl: avoid deprecated `require.extensions` in tab completion
gulbaki Jun 23, 2025
6ef7329
Revert "test_runner: automatically wait for subtests to finish"
romainmenke May 11, 2025
8b0c5ed
Revert "test_runner: remove promises returned by test()"
romainmenke May 11, 2025
dce1995
Revert "test_runner: remove promises returned by t.test()"
romainmenke May 11, 2025
7cdda92
test: fix test-timeout-flag after revert of auto subtest wait
pmarchini May 14, 2025
4703ef2
2025-06-24, Version 24.3.0 (Current)
nodejs-github-bot Jun 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: update zlib to 1.3.1-470d3a2
PR-URL: #58628
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
nodejs-github-bot authored and targos committed Jun 16, 2025
commit dc1023878c8271169068553f656981bc5661735b
18 changes: 12 additions & 6 deletions deps/zlib/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -173,25 +173,31 @@ if (use_arm_neon_optimizations) {
}
}

config("zlib_inflate_chunk_simd_config") {
config("zlib_data_chunk_simd_config") {
if (use_x86_x64_optimizations) {
defines = [ "INFLATE_CHUNK_SIMD_SSE2" ]

if (current_cpu == "x64") {
defines += [ "INFLATE_CHUNK_READ_64LE" ]
defines += [
"INFLATE_CHUNK_READ_64LE",
"DEFLATE_CHUNK_WRITE_64LE",
]
}
}

if (use_arm_neon_optimizations) {
defines = [ "INFLATE_CHUNK_SIMD_NEON" ]

if (current_cpu == "arm64") {
defines += [ "INFLATE_CHUNK_READ_64LE" ]
defines += [
"INFLATE_CHUNK_READ_64LE",
"DEFLATE_CHUNK_WRITE_64LE",
]
}
}
}

source_set("zlib_inflate_chunk_simd") {
source_set("zlib_data_chunk_simd") {
visibility = [ ":*" ]

if (use_x86_x64_optimizations || use_arm_neon_optimizations) {
Expand All @@ -213,7 +219,7 @@ source_set("zlib_inflate_chunk_simd") {
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":zlib_warnings" ]

public_configs = [ ":zlib_inflate_chunk_simd_config" ]
public_configs = [ ":zlib_data_chunk_simd_config" ]

public_deps = [ ":zlib_common_headers" ]
}
Expand Down Expand Up @@ -336,7 +342,7 @@ component("zlib") {
if (use_x86_x64_optimizations || use_arm_neon_optimizations) {
deps += [
":zlib_adler32_simd",
":zlib_inflate_chunk_simd",
":zlib_data_chunk_simd",
":zlib_slide_hash_simd",
]

Expand Down
11 changes: 9 additions & 2 deletions deps/zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

project(zlib C)

set(VERSION "1.3.0.1")
set(VERSION "1.3.1")

set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
Expand Down Expand Up @@ -47,6 +47,7 @@ if (ENABLE_SIMD_OPTIMIZATIONS)
add_definitions(-DINFLATE_CHUNK_SIMD_SSE2)
add_definitions(-DADLER32_SIMD_SSSE3)
add_definitions(-DINFLATE_CHUNK_READ_64LE)
add_definitions(-DDEFLATE_CHUNK_WRITE_64LE)
add_definitions(-DCRC32_SIMD_SSE42_PCLMUL)
if (ENABLE_SIMD_AVX512)
add_definitions(-DCRC32_SIMD_AVX512_PCLMUL)
Expand All @@ -64,6 +65,7 @@ if (ENABLE_SIMD_OPTIMIZATIONS)
add_definitions(-DINFLATE_CHUNK_SIMD_NEON)
add_definitions(-DADLER32_SIMD_NEON)
add_definitions(-DINFLATE_CHUNK_READ_64LE)
add_definitions(-DDEFLATE_CHUNK_WRITE_64LE)
add_definitions(-DCRC32_ARMV8_CRC32)
add_definitions(-DDEFLATE_SLIDE_HASH_NEON)
# Required by CPU features detection code.
Expand All @@ -83,10 +85,13 @@ if (ENABLE_SIMD_OPTIMIZATIONS)
add_definitions(-DDEFLATE_SLIDE_HASH_RVV)
add_definitions(-DADLER32_SIMD_RVV)

# TODO(cavalcantii): add remaining flags as we port optimizations to RVV.
# chunk_copy is required for READ64 and unconditional decode of literals.
add_definitions(-DINFLATE_CHUNK_GENERIC)
add_definitions(-DINFLATE_CHUNK_READ_64LE)
add_definitions(-DDEFLATE_CHUNK_WRITE_64LE)

# TODO(cavalcantii): only missing optimization is SLIDE_HASH, got port it
# to RISCV.

# Tested with clang-17, unaligned loads are required by read64 & chunk_copy.
# TODO(cavalcantii): replace internal clang flags for -munaligned-access
Expand Down Expand Up @@ -267,7 +272,9 @@ if(MINGW)
endif(MINGW)

add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
target_include_directories(zlibstatic PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
set_target_properties(zlib PROPERTIES SOVERSION 1)

Expand Down
5 changes: 2 additions & 3 deletions deps/zlib/OWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
agl@chromium.org
cavalcantii@chromium.org
cblume@chromium.org
scroggo@google.com
hans@chromium.org
agl@chromium.org #{LAST_RESORT_SUGGESTION}
15 changes: 9 additions & 6 deletions deps/zlib/README.chromium
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Name: zlib
Short Name: zlib
URL: http://zlib.net/
Version: 1.3.0.1
Revision: ac8f12c97d1afd9bafa9c710f827d40a407d3266
CPEPrefix: cpe:/a:zlib:zlib:1.3.0.1
Version: 1.3.1
Revision: 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
CPEPrefix: cpe:/a:zlib:zlib:1.3.1
Security Critical: yes
Shipped: yes
License: Zlib
Expand All @@ -21,14 +21,17 @@ also implements the zlib (RFC 1950) and gzip (RFC 1952) wrapper formats.
Local Modifications:
- Only source code from the zlib distribution used to build the zlib and
minizip libraries are present. Many other files have been omitted. Only *.c
and *.h files from the upstream root directory and contrib/minizip were
imported.
and *.h files from the upstream root directory, contrib/minizip and
examples/zpipe.c were imported.
- The files named '*simd*' are original x86/Arm/RISC-V specific optimizations.
- The contents of the google directory are original Chromium-specific
additions.
- The contents of the 'contrib' of directory are either Chromium-specific
additions or heavily patched zlib files (e.g. inffast_chunk*).
- Added chromeconf.h
- Plus the changes in 'patches' folder.
- Code in contrib/ other than contrib/minizip was added to match zlib's
contributor layout.
- In sync with 1.2.13 official release
- In sync with 1.3.1 official release
- ZIP reader modified to allow for progress callbacks during extraction.
- ZIP reader modified to add detection of AES encrypted content.
5 changes: 5 additions & 0 deletions deps/zlib/contrib/minizip/README.chromium
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ Local Modifications:
https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT section 4.6.9.
(see crrev.com/1002476)
0016-minizip-parse-unicode-path-extra-field.patch

- Added support for zip64 archives that have extra bytes on front (for example,
large CRX files).
0018-support-prefixed-zip64.patch

42 changes: 42 additions & 0 deletions deps/zlib/contrib/minizip/unzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,46 @@ local ZPOS64_T unz64local_SearchCentralDir64(const zlib_filefunc64_32_def* pzlib
if (uL != 1)
return CENTRALDIRINVALID;

/* If bytes are pre-pended to the archive, relativeOffset must be advanced
by that many bytes. The central dir must exist between the specified
relativeOffset and uPosFound. */
if (relativeOffset > uPosFound)
return CENTRALDIRINVALID;
const int BUFSIZE = 1024 * 4;
buf = (unsigned char*)ALLOC(BUFSIZE);
if (buf==NULL)
return CENTRALDIRINVALID;
// Zip64 EOCDR is at least 48 bytes long.
while (uPosFound - relativeOffset >= 48) {
int found = 0;
uLong uReadSize = uPosFound - relativeOffset;
if (uReadSize > BUFSIZE) {
uReadSize = BUFSIZE;
}
if (ZSEEK64(*pzlib_filefunc_def, filestream, relativeOffset, ZLIB_FILEFUNC_SEEK_SET) != 0) {
break;
}
if (ZREAD64(*pzlib_filefunc_def, filestream, buf, uReadSize) != uReadSize) {
break;
}
for (int i = 0; i < uReadSize - 3; ++i) {
// Looking for 0x06064b50, the Zip64 EOCDR signature.
if (buf[i] == 0x50 && buf[i + 1] == 0x4b &&
buf[i + 2] == 0x06 && buf[i + 3] == 0x06)
{
relativeOffset += i;
found = 1;
break;
}
}
if (found) {
break;
}
// Re-read the last 3 bytes, in case they're the front of the signature.
relativeOffset += uReadSize - 3;
}
free(buf);

/* Goto end of central directory record */
if (ZSEEK64(*pzlib_filefunc_def,filestream, relativeOffset,ZLIB_FILEFUNC_SEEK_SET)!=0)
return CENTRALDIRINVALID;
Expand Down Expand Up @@ -1005,6 +1045,8 @@ local int unz64local_GetCurrentFileInfoInternal(unzFile file,
{
uLong uSizeRead;

file_info.size_filename = fileNameSize;

if (fileNameSize < fileNameBufferSize)
{
*(szFileName + fileNameSize) = '\0';
Expand Down
6 changes: 6 additions & 0 deletions deps/zlib/contrib/tests/fuzzers/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ fuzzer_test("zlib_deflate_fuzzer") {
sources = [ "deflate_fuzzer.cc" ]
deps = [ "../../../:zlib" ]
}

fuzzer_test("minizip_unzip_fuzzer") {
sources = [ "minizip_unzip_fuzzer.cc" ]
deps = [ "../../../:minizip" ]
include_dirs = [ "//third_party/zlib/contrib/minizip" ]
}
119 changes: 119 additions & 0 deletions deps/zlib/contrib/tests/fuzzers/minizip_unzip_fuzzer.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <algorithm>
#include <cstdint>
#include <cstring>
#include <vector>

#include "unzip.h"

// Fuzzer builds often have NDEBUG set, so roll our own assert macro.
#define ASSERT(cond) \
do { \
if (!(cond)) { \
fprintf(stderr, "%s:%d Assert failed: %s\n", __FILE__, __LINE__, #cond); \
exit(1); \
} \
} while (0)

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// Mock read-only filesystem with only one file, file_data. In the calls
// below, 'opaque' points to file_data, and 'strm' points to the file's seek
// position, which is heap allocated so that failing to "close" it triggers a
// leak error.
std::vector<uint8_t> file_data(data, data + size);
zlib_filefunc64_def file_func = {
.zopen64_file = [](void* opaque, const void* filename,
int mode) -> void* {
ASSERT(mode == (ZLIB_FILEFUNC_MODE_READ | ZLIB_FILEFUNC_MODE_EXISTING));
return new size_t(0);
},
.zread_file = [](void* opaque, void* strm, void* buf,
uLong size) -> uLong {
std::vector<uint8_t>* vec = static_cast<std::vector<uint8_t>*>(opaque);
size_t* pos = static_cast<size_t*>(strm);
if (*pos >= vec->size()) {
return 0;
}
size = std::min(static_cast<size_t>(size), vec->size() - *pos);
memcpy(buf, vec->data() + *pos, size);
(*pos) += size;
return size;
},
.zwrite_file = [](void*, void*, const void*, uLong) -> uLong {
ASSERT(0 && "Writing is not supported.");
return 0;
},
.ztell64_file = [](void*, void* strm) -> ZPOS64_T {
return *static_cast<size_t*>(strm);
},
.zseek64_file = [](void* opaque, void* strm, ZPOS64_T offset,
int origin) -> long {
std::vector<uint8_t>* vec = static_cast<std::vector<uint8_t>*>(opaque);
size_t* pos = static_cast<size_t*>(strm);
switch (origin) {
case ZLIB_FILEFUNC_SEEK_SET:
*pos = offset;
break;
case ZLIB_FILEFUNC_SEEK_CUR:
*pos = *pos + offset;
break;
case ZLIB_FILEFUNC_SEEK_END:
*pos = vec->size() + offset;
break;
default:
ASSERT(0 && "Invalid origin");
}
return 0;
},
.zclose_file = [](void*, void* strm) -> int {
delete static_cast<size_t*>(strm);
return 0;
},
.zerror_file = [](void*, void*) -> int { return 0; },
.opaque = &file_data};

unzFile uzf = unzOpen2_64("foo.zip", &file_func);
if (uzf == NULL) {
return 0;
}

while (true) {
unz_file_info64 info = {0};

// TODO: Pass nullptrs and different buffer sizes to cover more code.
char filename[UINT16_MAX + 1]; // +1 for the null terminator.
char extra[UINT16_MAX]; // No null terminator.
char comment[UINT16_MAX + 1]; // +1 for the null terminator.

if (unzGetCurrentFileInfo64(uzf, &info, filename, sizeof(filename), extra,
sizeof(extra), comment, sizeof(comment)) == UNZ_OK) {
ASSERT(info.size_filename <= UINT16_MAX);
ASSERT(info.size_file_extra <= UINT16_MAX);
ASSERT(info.size_file_comment <= UINT16_MAX);

ASSERT(filename[info.size_filename] == '\0');
ASSERT(comment[info.size_file_comment] == '\0');
}

if (unzOpenCurrentFile(uzf) == UNZ_OK) {
while (true) {
char buffer[4096];
int num_read = unzReadCurrentFile(uzf, buffer, sizeof(buffer));
if (num_read <= 0) {
break;
}
}
unzCloseCurrentFile(uzf);
}

if (unzGoToNextFile(uzf) != UNZ_OK) {
break;
}
}

unzClose(uzf);
return 0;
}
Loading