deps: update zlib to 1.3.0.1-motley-82a5fec

PR-URL: https://github.com/nodejs/node/pull/55980
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Node.js GitHub Bot authored and GitHub committed 2024-11-29 06:47:40 +00:00
1 parent b5eb77fd5d
commit 4efb7ae454
2 files changed
+6 -5

No files matched your search

+5 -4
View File
@@ -5,6 +5,7 @@
#include "third_party/zlib/google/zip_writer.h"
#include <algorithm>
#include <tuple>
#include "base/files/file.h"
#include "base/logging.h"
@@ -193,8 +194,8 @@ bool ZipWriter::AddMixedEntries(Paths paths) {
while (!paths.empty()) {
// Work with chunks of 50 paths at most.
const size_t n = std::min<size_t>(paths.size(), 50);
const Paths relative_paths = paths.subspan(0, n);
paths = paths.subspan(n, paths.size() - n);
Paths relative_paths;
std::tie(relative_paths, paths) = paths.split_at(n);
files.clear();
if (!file_accessor_->Open(relative_paths, &files) || files.size() != n)
@@ -233,8 +234,8 @@ bool ZipWriter::AddFileEntries(Paths paths) {
while (!paths.empty()) {
// Work with chunks of 50 paths at most.
const size_t n = std::min<size_t>(paths.size(), 50);
const Paths relative_paths = paths.subspan(0, n);
paths = paths.subspan(n, paths.size() - n);
Paths relative_paths;
std::tie(relative_paths, paths) = paths.split_at(n);
DCHECK_EQ(relative_paths.size(), n);
+1 -1
View File
@@ -2,5 +2,5 @@
// Refer to tools/dep_updaters/update-zlib.sh
#ifndef SRC_ZLIB_VERSION_H_
#define SRC_ZLIB_VERSION_H_
#define ZLIB_VERSION "1.3.0.1-motley-7e2e4d7"
#define ZLIB_VERSION "1.3.0.1-motley-82a5fec"
#endif // SRC_ZLIB_VERSION_H_