Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10.x] Update libuv to 1.27.0 #27728

Closed
wants to merge 221 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
6a5d42e
test: add fs.watchFile() + worker.terminate() test
addaleax Jun 6, 2018
bc7449c
doc: add Note of options.stdio into child_process
koh110 Mar 12, 2019
f7b03bd
http2: delete unused enum in node_http2.h
gengjiawen Mar 16, 2019
0f4f22c
doc: condense LTS material in Collaborator Guide
Trott Mar 17, 2019
4ba8ce4
doc: remove How Does LTS Work section from Collaborator Guide
Trott Mar 17, 2019
64c3e7d
test: optimize test-http2-large-file
Trott Mar 18, 2019
d7cdf8c
doc: remove discord community
aymen94 Mar 20, 2019
8916dd5
benchmark: replace deprecated and eliminate var in buffer-from.js
gengjiawen Mar 11, 2019
b9ac6d7
doc: fix comma of the list in worker_threads.md
nodejh Mar 21, 2019
3a60dfa
build: use Xenial and gcc 6 on Travis
richardlau Mar 17, 2019
e4cb24e
build: temporarily don't run tests on Travis
richardlau Mar 22, 2019
2f82636
build: restore running tests on Travis
richardlau Mar 22, 2019
fa22a1c
test: fix test-console-stdio-setters to test setters
Trott Mar 20, 2019
5790e49
test: complete console.assert() coverage
Trott Mar 20, 2019
9541302
doc: change error message to 'not defined'
MohammedEssehemy Mar 22, 2019
46742f4
doc: edit LTS material in Collaborator Guide
Trott Mar 21, 2019
4a4e1f4
trace_events: remove usage of require('util')
dnlup Mar 20, 2019
2b9c492
tools, icu: actually failover if there are multiple URLs
srl295 Oct 17, 2018
cd1939f
deps: icu 63.1 bump (CLDR 34)
srl295 Oct 17, 2018
9e99e3e
fs,net: standardize `pending` stream property
addaleax Nov 3, 2018
3f3f833
deps: upgrade to libuv 1.24.0
cjihrig Nov 13, 2018
a0a3095
readline: add support for async iteration
TimothyGu Oct 27, 2018
4cf5708
test: test TLS client authentication
sam-github Oct 12, 2017
8e56a12
querystring: remove eslint-disable
cjihrig Dec 12, 2018
e5b7eb7
build: add a space to clarify skipping crypto msg
danbev Dec 13, 2018
f145187
src: schedule destroy hooks in BeforeExit early during bootstrap
joyeecheung Dec 13, 2018
2a225a2
test: add signal check to test-esm-cjs-main
Trott Dec 16, 2018
da25605
deps: upgrade to libuv 1.24.1
cjihrig Dec 16, 2018
da5ed84
test: verify input flags
BridgeAR Dec 6, 2018
a8cbe4d
events: simplify stack compare function
BridgeAR Nov 18, 2018
6993236
src: port GetLoadedLibraries for freebsd
gireeshpunathil Dec 18, 2018
cf06b85
os: use uv_os_gethostname() in hostname()
cjihrig Dec 18, 2018
3421f6a
build: correct fi indentation in Makefile
danbev Dec 18, 2018
330fce4
tools: update certdata.txt
sam-github Dec 18, 2018
7292ed3
crypto: update root certificates
sam-github Dec 18, 2018
451d811
doc: describe root cert update process
sam-github Dec 18, 2018
f37cef3
doc: revise "Breaking Changes and Deprecations"
Trott Dec 18, 2018
150e02f
test: add hasCrypto check to common flags check
danbev Dec 20, 2018
918e8b1
test: remove Files: comment processing from Python test runner
Trott Dec 22, 2018
f6b8469
test: mark test-trace-events-api-worker-disabled flaky
Trott Dec 23, 2018
a96e6bd
tools: update ESLint to 5.11.0
cjihrig Dec 23, 2018
51f440f
test: fix test-tls-session-timeout
Trott Dec 23, 2018
0933bcf
deps: upgrade npm to 6.5.0
Nov 29, 2018
68b51b3
doc: fix NAPI typo
DaAitch Dec 25, 2018
16e2f7e
test: refactor test-esm-namespace.mjs
Trott Dec 19, 2018
958b97f
net: check for close on stream, not parent
davedoesdev Dec 13, 2018
48bdb19
dns: fix TTL value for AAAA replies to `resolveAny()`
addaleax Dec 22, 2018
1fe0cc4
src: do not leak NodeTraceStateObserver
addaleax Dec 22, 2018
9fb8682
doc: revise "Breaking Changes to Internal Elements"
Trott Dec 23, 2018
2b24fc4
test: refactor stdio handling in test-esm-cjs-main
richardlau Dec 21, 2018
3f155bf
util: simplify code
kkty Dec 21, 2018
7a7c913
doc: link and expand --tls-cipher-list docs
sam-github Dec 21, 2018
63b978a
doc: describe TLS session resumption
sam-github Dec 21, 2018
e33cf1d
test: mark two tests as flaky in AIX
gireeshpunathil Dec 19, 2018
8635724
child_process: simplify argument handling
cjihrig Dec 23, 2018
2d1aaf0
tools: update ESLint to 5.11.1
cjihrig Dec 27, 2018
4427e5a
tools: enable no-useless-catch lint rule
cjihrig Dec 27, 2018
721e9cf
lib: simplify several debug() calls
cjihrig Dec 27, 2018
01723ad
benchmark: fix net-wrap-js-stream-passthrough
Trott Dec 29, 2018
b49935a
test: regression test for uv threadpool congestion
gireeshpunathil Sep 26, 2018
a9b6aea
util: fix util.inspect with proxied function
starkwang Dec 28, 2018
522d8eb
test: remove try/catch in common.isMainThread
Trott Dec 28, 2018
0c5972f
test: slightly refactor test-child-process-execsync
lundibundi Dec 26, 2018
979a397
win, build: fix building addons on Windows
bzoz Dec 18, 2018
7fa2a1a
tools: replace NULL with nullptr
juanarbol Dec 22, 2018
eb18124
doc: include license for src/large_pages in LICENSE
ryzokuken Dec 28, 2018
baa1ceb
src: remove unused variable from string_search.h
addaleax Dec 19, 2018
3ded5a0
crypto: add crypto/keys to cannotUseCache
danbev Dec 27, 2018
2987c96
test: mark test-util-callbackify flaky on AIX
Trott Dec 30, 2018
a8f934c
test: remove unused --expose-native-as V8 flag
peterwmwong Dec 29, 2018
4b21790
repl: indicate if errors are thrown or not
BridgeAR Dec 28, 2018
589f9e8
test: make sure tmpdir is created before using it
joyeecheung Dec 26, 2018
f2d2ba9
test: set umask explicitly
i8-pi Dec 25, 2018
3d0421a
build: fix Windows shared lib build
richardlau Dec 21, 2018
2d9e52d
lib,test: remove lib/internal/test/unicode.js
Trott Jan 1, 2019
757cf4d
doc: fs.mkdir('/') throws EPERM on Windows
coreyfarrell Jan 4, 2019
413651d
test: fix test-benchmark-zlib
Trott Jan 6, 2019
ff0defb
src: remove unused method declaration
bnoordhuis Jan 3, 2019
f8d6e3f
test: http2 origin length ERR_HTTP2_ORIGIN_LENGTH
fshaikh Dec 31, 2018
8b872e5
tools: update ESLint to 5.12.0
cjihrig Jan 4, 2019
4301e5e
test: fix test-tls-securepair-client
Trott Dec 26, 2018
166a61a
test: move test-tls-securepair-client out of pummel
Trott Dec 26, 2018
5bd6fe7
lib: support overriding http\s.globalAgent
illBeRoy Dec 21, 2018
c6935e7
doc: fix process.stdin example
addaleax Jan 4, 2019
6381452
src: trace_events: fix race with metadata events
ofrobots Dec 27, 2018
294e567
test: remove redundant fchmod test
ZYSzys Dec 30, 2018
39a266b
doc: fix heading in cpp style guide
kkty Jan 1, 2019
f6f7dbc
test: tune test-uv-threadpool-schedule
Trott Jan 6, 2019
32c7038
doc: use lowercase for zlib
Trott Jan 6, 2019
69568a0
test: more tests for internal/util/types
ZYSzys Dec 26, 2018
ec10eaf
doc: update benchmark doc
kkty Jan 6, 2019
678962e
tls: do not confuse TLSSocket and Socket
sam-github Dec 19, 2018
769736c
doc: clarify timing of socket.connecting
sam-github Jan 4, 2019
8ae414e
doc: add clarification for exception behaviour
mhdawson Jan 4, 2019
7964746
doc: add history to http.request.setTimeout()
jbunton-atlassian Dec 19, 2018
0336985
test: fix test/pummel/test-fs-largefile.js
Trott Jan 7, 2019
5ecd765
test: fix test/pummel/test-fs-watch-file.js
Trott Jan 8, 2019
a3e8b55
test: fix test/pummel/test-fs-watch-non-recursive.js
Trott Jan 8, 2019
5ab0410
test: refactor test-fs-watch-non-recursive
Trott Jan 8, 2019
bce3960
doc: make sure that calls to .read() are looped
mcollina Jan 7, 2019
2a5d85c
test: remove test/pummel/test-http-client-reconnect-bug.js
Trott Jan 8, 2019
73c1a05
test: fix test-net-connect-econnrefused
Trott Jan 8, 2019
65a6ea5
tools: add openssl-cli to macos-firewall.sh
danbev Jan 8, 2019
38b8c19
test: move require('https') to after crypto check
danbev Jan 8, 2019
f19c622
build: add check for empty openssl-fips flag
danbev Jan 8, 2019
c0accb8
url: return backslashes from fileURLToPath on win
Dec 29, 2018
e7e0a1f
tools: update crypo check rule
cjihrig Jan 8, 2019
070dae1
test: improve test coverage of native crypto code
tniessen Jan 7, 2019
46711c7
doc: update `os.networkInterfaces()` example
jvelezpo Jan 9, 2019
c1a47fd
doc: fix the path to postMessage()
mitar Jan 3, 2019
d159b82
tools: lint for use of internalBinding()
cjihrig Jan 8, 2019
55899ef
test: remove unnecessary skipIfWorker()
Trott Jan 10, 2019
67db596
doc: document that stream.on('close') was changed in Node 10
mcollina Jan 9, 2019
ac09717
test: fix test-net-connect-econnrefused (again)
Trott Jan 10, 2019
78e2652
doc: fix `napi_open_callback_scope` description
DaAitch Jan 6, 2019
7090437
doc: fix sorting in buffer.md
vsemozhetbyt Jan 13, 2019
6fde094
http2: add test case for goaway
antsmartian Nov 3, 2018
1e8fe28
test: check for tls renegotiation errors
sam-github Jan 10, 2019
4c0a5c6
test: rework ephemeralkeyinfo to run in parallel
sam-github Jan 9, 2019
8d53c24
util: fixes type in argument type validation error
aoberoi Dec 18, 2018
6d1ca0b
test: add test for fs.lchmod
ZYSzys Jan 11, 2019
a78be87
doc: add TLSSocket.isSessionReused() docs
sam-github Jan 9, 2019
b9c4b79
inspector, test: verify reported console message
eugeneo Jan 11, 2019
b82f65f
test: refactor pummel/test-keep-alive
Trott Jan 14, 2019
3d13787
test: refactor pummel/test-net-connect-econnrefused
Trott Jan 14, 2019
d5d085c
test: refactor pummel/test-net-many-clients
Trott Jan 14, 2019
cd51ddd
test: refactor pummel/test-net-pingpong
Trott Jan 14, 2019
a61e260
doc: add metadata about ecdh curve options
sam-github Jan 14, 2019
2e9612f
test: fix test-repl timeout and tmpdir refresh
mscdex Jan 9, 2019
c4d09db
doc: add Rich back to TSC list
mhdawson Jan 16, 2019
6d73790
test: add check for wrk to test-keep-alive
Trott Jan 15, 2019
4e9501b
test: refactor min() in test-hash-seed
Trott Jan 15, 2019
8ea6b89
test: prepare test-hash-seed for CI
Trott Jan 15, 2019
f3e4069
doc: fix typo in Buffer API
H1Gdev Jan 17, 2019
98669a2
test: do not use uninitialized memory in common flags check
addaleax Jan 13, 2019
84fe054
test: use fipsMode instead of common.hasFipsCrypto
danbev Jan 15, 2019
f5d1859
test: improve code coverage for i18n
mhdawson Jan 10, 2019
bd3ca97
doc: add a note to `buf.fill()` description
vsemozhetbyt Jan 17, 2019
f5ee585
test: relax chunk count expectations
gireeshpunathil Jan 9, 2019
df04d3b
tls: make tls.connect() accept a timeout option
lpinca Jan 15, 2019
eb3b516
doc: correct my wrong note about buf.fill()
vsemozhetbyt Jan 19, 2019
58ecc3d
http: reuse noop function in socketOnError()
cjihrig Jan 18, 2019
c61da20
doc: reword stream docs to clarify that decodeStrings encodes strings
dgholz Jan 12, 2019
cfd501e
tools: update ESLint to 5.12.1
cjihrig Jan 18, 2019
d795b1a
test: use stronger curves for keygen
danbev Jan 16, 2019
463b6e5
test: changed function to arrow function
Jan 11, 2019
fade220
tools: improve valgrind support
addaleax Dec 30, 2018
d30ea03
http: make ClientRequest#setTimeout() noop at end
timdp Jan 16, 2019
9e3ef92
build: do not lint python scripts under test/fixtures
joyeecheung Jan 22, 2019
ba1660d
build: remove erroneous duplicate declaration from node_inspector.gypi
refack Jan 19, 2019
459f6a1
test: replace common.PORT with `0` in https renegotiation test
Trott Jan 21, 2019
0f45dd5
test: remove potential race condition in https renegotiation test
Trott Jan 21, 2019
29ed864
test: revoke flaky designation for tests
gireeshpunathil Jan 21, 2019
6e5c208
http2: allow fully synchronous `_final()`
addaleax Jan 21, 2019
ef14709
events: show inspected error in uncaught 'error' message
addaleax Jan 21, 2019
f71c55b
src: remove outdated `Neuter()` call in `node_buffer.cc`
addaleax Jan 13, 2019
a4da17a
build: remove AIX/ppc (32bit) dead code
refack Jan 15, 2019
02eb75d
test: add stdio checks to cp-exec-maxBuffer
Fishrock123 Dec 11, 2018
b075fda
child_process: truncate output when maxBuffer is exceeded
Fishrock123 Dec 11, 2018
db64dae
crypto: add crypto modules to cannotUseCache
danbev Jan 21, 2019
043b9be
test: fix pummel/test-exec
Trott Jan 24, 2019
f609f16
doc: add note regarding pushing release tags
MylesBorins Jan 18, 2019
cf4897d
test: remove known_issues/test-cluster-bind-privileged-port
Trott Jan 22, 2019
0a48ddd
doc: simplify process.binding() deprecation message
Trott Jan 23, 2019
13ee984
test: remove common.isOSXMojave
Trott Jan 23, 2019
20355c3
doc: clarify what dns.setResolvers() affects
sam-github Jan 18, 2019
4c06433
repl: improve doc for disabling REPL history on Windows
ralish Jan 23, 2019
3f0bc59
test: fix sequential/test-performance delay
apapirovski Jan 25, 2019
c7e7089
doc: remove outdated s_client information in tls.md
Trott Jan 24, 2019
1d75e69
doc: fix file extension on ESM file example
ewhitebloom Jan 25, 2019
802661a
test: remove unused uncaughtException handler
addaleax Jan 22, 2019
b04c219
perf_hooks: clean up GC listeners
addaleax Jan 22, 2019
34f6b96
src: fix macro duplicate declaration in env.h
gengjiawen Jan 25, 2019
682cedd
build: make configure.py compatible with python 3
thefourtheye Jan 19, 2019
faf45a7
build: make compress_json python3 compatible
thefourtheye Jan 19, 2019
58b23f9
tools: make mkssldef.py Python 3 compatible
thefourtheye Jan 19, 2019
1a0bb27
doc: fix http.Agent timeout option description
lpinca Jan 14, 2019
b5a641f
test: rewrite fs {f}utimes test file
Fishrock123 Jan 23, 2019
1350d3c
tools: make test.py Queue part Python 3 compatible
gengjiawen Jan 25, 2019
854fc5d
src: remove unnecessary call to SSL_get_mode
sam-github Jan 25, 2019
5ebdb9d
doc: revise breaking changes material in COLLABORATOR_GUIDE
Trott Jan 27, 2019
341abab
src: remove unused field in node_http2.h
gengjiawen Jan 26, 2019
1a15fdc
module: use compileFunction over Module.wrap
ryzokuken Jun 28, 2018
dcf9519
module: revert module._compile to original state if module is patched
ryzokuken Nov 7, 2018
ea6a0ad
deps: update ICU to 64.2
ryzokuken Apr 23, 2019
3c8787b
tools: update LICENSE and tools/icu/current_ver.dep
ryzokuken Apr 23, 2019
8d4c15f
deps: backport ICU-20558 to fix Intl crasher
srl295 Apr 25, 2019
cdde908
deps: backport ICU-20575 to fix err/crasher
srl295 Apr 25, 2019
d8b5e62
deps: upgrade npm to v6.5.0
ljharb Dec 26, 2018
a385f2b
deps: upgrade npm to 6.7.0
zkat Jan 29, 2019
29c6530
deps: upgrade npm to 6.9.0
zkat Apr 5, 2019
ebe51a4
zlib: split JS code as prep for non-zlib-backed streams
addaleax Dec 6, 2018
c5c4a21
deps: add brotli
Hackzzila May 1, 2018
499ed9f
deps,tools: update license-builder.sh and LICENSE
Hackzzila May 2, 2018
aab0da6
zlib: add brotli support
addaleax Nov 27, 2018
15b43e3
benchmark,test: add brotli
addaleax Dec 10, 2018
4048e0d
doc: add documentation for brotli support
addaleax Dec 9, 2018
16478de
test: fix zlib-brotli output assumptions
AdamMajer Jan 25, 2019
a8ad994
deps: update OpenSSL upgrade process
sam-github Mar 1, 2019
c0e4d6e
deps: upgrade openssl sources to 1.1.1b
sam-github Apr 25, 2019
f4c6b25
deps: openssl-1.1.1b no longer packages .gitignore
sam-github Feb 26, 2019
af5d889
deps: add ARM64 Windows support in openssl
shigeki Feb 23, 2019
e9684b1
deps: add s390 asm rules for OpenSSL-1.1.1
shigeki Mar 7, 2018
0620314
deps: update archs files for OpenSSL-1.1.1b
sam-github Apr 25, 2019
5e82b79
tools: add `12.x` to alternative docs versions
richardlau May 12, 2019
a1aedd6
doc,tools: updates for 6.x End-of-Life
richardlau May 14, 2019
915ea2a
test: mark some known flakes
refack Apr 14, 2019
f5c0b84
test: move tick.js from test/async-hooks to test/common
arur Oct 12, 2018
bc4d717
doc: add "tick" function name and argument description
arur Oct 13, 2018
7f5120a
deps: patch to fix *.onion MX query on c-ares
XadillaX Jan 31, 2019
5cd9299
fs: fix infinite loop with async recursive mkdir on Windows
richardlau Apr 13, 2019
5716f23
test: use assert.rejects() and assert.throws()
richardlau Apr 16, 2019
eb59d4e
src: fix race condition in `~NodeTraceBuffer`
addaleax Feb 2, 2019
89dd890
src: extract common sockaddr creation code
danbev Feb 13, 2019
3ac2e3e
test: add test about unencrypted PKCS#8 private key for RSA
sasurau4 Mar 25, 2019
865bcef
test: add known_issues test for fs.copyFile()
Trott Mar 27, 2019
45a47b0
deps: upgrade to libuv 1.25.0
cjihrig Jan 18, 2019
4029192
deps: upgrade to libuv 1.26.0
cjihrig Feb 10, 2019
55938e2
test: update test for libuv update
cjihrig Mar 16, 2019
241ff5e
deps: upgrade to libuv 1.27.0
cjihrig Mar 16, 2019
32f479c
os: implement os.release() using uv_os_uname()
cjihrig Jan 21, 2019
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: upgrade to libuv 1.24.1
PR-URL: #25078
Fixes: #24521
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
cjihrig authored and BethGriggs committed May 10, 2019

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
commit da2560520eee54529e85bbb006d4335227169f5d
2 changes: 1 addition & 1 deletion deps/uv/.gitignore
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ Makefile.in
/android-toolchain

/out/
/build/gyp
/build/

/test/.libs/
/test/run-tests
6 changes: 6 additions & 0 deletions deps/uv/AUTHORS
Original file line number Diff line number Diff line change
@@ -356,3 +356,9 @@ hitesh <[email protected]>
Svante Signell <[email protected]>
Samuel Thibault <[email protected]>
Jeremy Studer <[email protected]>
damon-kwok <[email protected]>
Damon Kwok <[email protected]>
Ashe Connor <[email protected]>
Rick <[email protected]>
Ivan Krylov <[email protected]>
Michael Meier <[email protected]>
8 changes: 7 additions & 1 deletion deps/uv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ set(uv_sources
src/fs-poll.c
src/idna.c
src/inet.c
src/strscpy.c
src/threadpool.c
src/timer.c
src/uv-common.c
@@ -116,6 +117,7 @@ set(uv_test_sources
test/test-socket-buffer-size.c
test/test-spawn.c
test/test-stdio-over-pipes.c
test/test-strscpy.c
test/test-tcp-alloc-cb-fail.c
test/test-tcp-bind-error.c
test/test-tcp-bind6-error.c
@@ -208,7 +210,11 @@ if(WIN32)
list(APPEND uv_test_sources src/win/snprintf.c test/runner-win.c)
else()
list(APPEND uv_defines _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE)
list(APPEND uv_libraries pthread)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
# Android has pthread as part of its c library, not as a separate
# libpthread.so.
list(APPEND uv_libraries pthread)
endif()
list(APPEND uv_sources
src/unix/async.c
src/unix/core.c
33 changes: 33 additions & 0 deletions deps/uv/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
2018.12.17, Version 1.24.1 (Stable), 274f2bd3b70847cadd9a3965577a87e666ab9ac3

Changes since version 1.24.0:

* test: fix platform_output test on cygwin (damon-kwok)

* gitignore: ignore build/ directory (Damon Kwok)

* unix: zero epoll_event before use (Ashe Connor)

* darwin: use runtime check for file cloning (Ben Noordhuis)

* doc: replace deprecated build command on macOS (Rick)

* warnings: fix code that emits compiler warnings (Jameson Nash)

* doc: clarify expected memory management strategy (Ivan Krylov)

* test: add uv_inet_ntop(AF_INET) coverage (Ben Noordhuis)

* unix: harden string copying, introduce strscpy() (Ben Noordhuis)

* linux: get rid of strncpy() call (Ben Noordhuis)

* aix: get rid of strcat() calls (Ben Noordhuis)

* aix: fix data race in uv_fs_event_start() (Ben Noordhuis)

* win: fs: fix `FILE_FLAG_NO_BUFFERING` for writes (Joran Dirk Greef)

* build: don't link against -lpthread on Android (Michael Meier)


2018.11.14, Version 1.24.0 (Stable), 2d427ee0083d1baf995df4ebf79a3f8890e9a3e1

Changes since version 1.23.2:
3 changes: 3 additions & 0 deletions deps/uv/Makefile.am
Original file line number Diff line number Diff line change
@@ -32,6 +32,8 @@ libuv_la_SOURCES = src/fs-poll.c \
src/idna.c \
src/inet.c \
src/queue.h \
src/strscpy.c \
src/strscpy.h \
src/threadpool.c \
src/timer.c \
src/uv-data-getter-setters.c \
@@ -241,6 +243,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
test/test-socket-buffer-size.c \
test/test-spawn.c \
test/test-stdio-over-pipes.c \
test/test-strscpy.c \
test/test-tcp-alloc-cb-fail.c \
test/test-tcp-bind-error.c \
test/test-tcp-bind6-error.c \
3 changes: 1 addition & 2 deletions deps/uv/README.md
Original file line number Diff line number Diff line change
@@ -262,8 +262,7 @@ Run:

```bash
$ ./gyp_uv.py -f xcode
$ xcodebuild -ARCHS="x86_64" -project uv.xcodeproj \
-configuration Release -target All
$ xcodebuild -ARCHS="x86_64" -project out/uv.xcodeproj -configuration Release -alltargets
```

Using Homebrew:
2 changes: 1 addition & 1 deletion deps/uv/configure.ac
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

AC_PREREQ(2.57)
AC_INIT([libuv], [1.24.0], [https://github.com/libuv/libuv/issues])
AC_INIT([libuv], [1.24.1], [https://github.com/libuv/libuv/issues])
AC_CONFIG_MACRO_DIR([m4])
m4_include([m4/libuv-extra-automake-flags.m4])
m4_include([m4/as_case.m4])
2 changes: 2 additions & 0 deletions deps/uv/docs/src/handle.rst
Original file line number Diff line number Diff line change
@@ -140,6 +140,8 @@ API

Request handle to be closed. `close_cb` will be called asynchronously after
this call. This MUST be called on each handle before memory is released.
Moreover, the memory can only be released in `close_cb` or after it has
returned.

Handles that wrap file descriptors are closed immediately but
`close_cb` will still be deferred to the next iteration of the event loop.
2 changes: 1 addition & 1 deletion deps/uv/include/uv/version.h
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@

#define UV_VERSION_MAJOR 1
#define UV_VERSION_MINOR 24
#define UV_VERSION_PATCH 0
#define UV_VERSION_PATCH 1
#define UV_VERSION_IS_RELEASE 1
#define UV_VERSION_SUFFIX ""

1 change: 1 addition & 0 deletions deps/uv/include/uv/win.h
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@

#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
typedef intptr_t ssize_t;
# define SSIZE_MAX INTPTR_MAX
# define _SSIZE_T_
# define _SSIZE_T_DEFINED
#endif
11 changes: 2 additions & 9 deletions deps/uv/src/inet.c
Original file line number Diff line number Diff line change
@@ -59,8 +59,7 @@ static int inet_ntop4(const unsigned char *src, char *dst, size_t size) {
if (l <= 0 || (size_t) l >= size) {
return UV_ENOSPC;
}
strncpy(dst, tmp, size);
dst[size - 1] = '\0';
uv__strscpy(dst, tmp, size);
return 0;
}

@@ -142,14 +141,8 @@ static int inet_ntop6(const unsigned char *src, char *dst, size_t size) {
if (best.base != -1 && (best.base + best.len) == ARRAY_SIZE(words))
*tp++ = ':';
*tp++ = '\0';

/*
* Check for overflow, copy, and we're done.
*/
if ((size_t)(tp - tmp) > size) {
if (UV_E2BIG == uv__strscpy(dst, tmp, size))
return UV_ENOSPC;
}
strcpy(dst, tmp);
return 0;
}

17 changes: 17 additions & 0 deletions deps/uv/src/strscpy.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "strscpy.h"
#include <limits.h> /* SSIZE_MAX */

ssize_t uv__strscpy(char* d, const char* s, size_t n) {
size_t i;

for (i = 0; i < n; i++)
if ('\0' == (d[i] = s[i]))
return i > SSIZE_MAX ? UV_E2BIG : (ssize_t) i;

if (i == 0)
return 0;

d[--i] = '\0';

return UV_E2BIG;
}
18 changes: 18 additions & 0 deletions deps/uv/src/strscpy.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#ifndef UV_STRSCPY_H_
#define UV_STRSCPY_H_

/* Include uv.h for its definitions of size_t and ssize_t.
* size_t can be obtained directly from <stddef.h> but ssize_t requires
* some hoop jumping on Windows that I didn't want to duplicate here.
*/
#include "uv.h"

/* Copies up to |n-1| bytes from |d| to |s| and always zero-terminates
* the result, except when |n==0|. Returns the number of bytes copied
* or UV_E2BIG if |d| is too small.
*
* See https://www.kernel.org/doc/htmldocs/kernel-api/API-strscpy.html
*/
ssize_t uv__strscpy(char* d, const char* s, size_t n);

#endif /* UV_STRSCPY_H_ */
2 changes: 1 addition & 1 deletion deps/uv/src/timer.c
Original file line number Diff line number Diff line change
@@ -152,7 +152,7 @@ int uv__next_timeout(const uv_loop_t* loop) {
if (diff > INT_MAX)
diff = INT_MAX;

return diff;
return (int) diff;
}


32 changes: 16 additions & 16 deletions deps/uv/src/unix/aix.c
Original file line number Diff line number Diff line change
@@ -358,19 +358,15 @@ void uv_loadavg(double avg[3]) {


#ifdef HAVE_SYS_AHAFS_EVPRODS_H
static char *uv__rawname(char *cp) {
static char rawbuf[FILENAME_MAX+1];
char *dp = rindex(cp, '/');
static char* uv__rawname(const char* cp, char (*dst)[FILENAME_MAX+1]) {
char* dp;

dp = rindex(cp, '/');
if (dp == 0)
return 0;

*dp = 0;
strcpy(rawbuf, cp);
*dp = '/';
strcat(rawbuf, "/r");
strcat(rawbuf, dp+1);
return rawbuf;
snprintf(*dst, sizeof(*dst), "%.*s/r%s", (int) (dp - cp), cp, dp + 1);
return *dst;
}


@@ -399,6 +395,7 @@ static int uv__path_is_a_directory(char* filename) {
* Returns 0 if AHAFS is mounted, or an error code < 0 on failure
*/
static int uv__is_ahafs_mounted(void){
char rawbuf[FILENAME_MAX+1];
int rv, i = 2;
struct vmount *p;
int size_multiplier = 10;
@@ -432,7 +429,7 @@ static int uv__is_ahafs_mounted(void){
obj = vmt2dataptr(vmt, VMT_OBJECT); /* device */
stub = vmt2dataptr(vmt, VMT_STUB); /* mount point */

if (EQ(obj, dev) || EQ(uv__rawname(obj), dev) || EQ(stub, dev)) {
if (EQ(obj, dev) || EQ(uv__rawname(obj, &rawbuf), dev) || EQ(stub, dev)) {
uv__free(p); /* Found a match */
return 0;
}
@@ -453,7 +450,8 @@ static int uv__makedir_p(const char *dir) {
size_t len;
int err;

snprintf(tmp, sizeof(tmp),"%s",dir);
/* TODO(bnoordhuis) Check uv__strscpy() return value. */
uv__strscpy(tmp, dir, sizeof(tmp));
len = strlen(tmp);
if (tmp[len - 1] == '/')
tmp[len - 1] = 0;
@@ -702,9 +700,9 @@ static void uv__ahafs_event(uv_loop_t* loop, uv__io_t* event_watch, unsigned int
else
p++;
}
strncpy(fname, p, sizeof(fname) - 1);
/* Just in case */
fname[sizeof(fname) - 1] = '\0';

/* TODO(bnoordhuis) Check uv__strscpy() return value. */
uv__strscpy(fname, p, sizeof(fname));

handle->cb(handle, fname, events, 0);
}
@@ -735,7 +733,8 @@ int uv_fs_event_start(uv_fs_event_t* handle,
/* Figure out whether filename is absolute or not */
if (filename[0] == '/') {
/* We have absolute pathname */
snprintf(absolute_path, sizeof(absolute_path), "%s", filename);
/* TODO(bnoordhuis) Check uv__strscpy() return value. */
uv__strscpy(absolute_path, filename, sizeof(absolute_path));
} else {
/* We have a relative pathname, compose the absolute pathname */
snprintf(cwd, sizeof(cwd), "/proc/%lu/cwd", (unsigned long) getpid());
@@ -986,7 +985,8 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
return UV_ENOMEM;
}

strcpy(cpu_id.name, FIRST_CPU);
/* TODO(bnoordhuis) Check uv__strscpy() return value. */
uv__strscpy(cpu_id.name, FIRST_CPU, sizeof(cpu_id.name));
result = perfstat_cpu(&cpu_id, ps_cpus, sizeof(perfstat_cpu_t), ncpus);
if (result == -1) {
uv__free(ps_cpus);
3 changes: 1 addition & 2 deletions deps/uv/src/unix/darwin-proctitle.c
Original file line number Diff line number Diff line change
@@ -192,8 +192,7 @@ void uv__set_process_title(const char* title) {

if (dynamic_pthread_setname_np != NULL) {
char namebuf[64]; /* MAXTHREADNAMESIZE */
strncpy(namebuf, title, sizeof(namebuf) - 1);
namebuf[sizeof(namebuf) - 1] = '\0';
uv__strscpy(namebuf, title, sizeof(namebuf));
dynamic_pthread_setname_np(namebuf);
}
}
42 changes: 31 additions & 11 deletions deps/uv/src/unix/fs.c
Original file line number Diff line number Diff line change
@@ -61,6 +61,7 @@

#if defined(__APPLE__)
# include <copyfile.h>
# include <sys/sysctl.h>
#elif defined(__linux__) && !defined(FICLONE)
# include <sys/ioctl.h>
# define FICLONE _IOW(0x94, 9, int)
@@ -70,6 +71,10 @@
# include <utime.h>
#endif

#if defined(_AIX) && _XOPEN_SOURCE <= 600
extern char *mkdtemp(char *template); /* See issue #740 on AIX < 7 */
#endif

#define INIT(subtype) \
do { \
if (req == NULL) \
@@ -722,7 +727,7 @@ static ssize_t uv__fs_utime(uv_fs_t* req) {
atr.att_atimechg = 1;
atr.att_mtime = req->mtime;
atr.att_atime = req->atime;
return __lchattr(req->path, &atr, sizeof(atr));
return __lchattr((char*) req->path, &atr, sizeof(atr));
#else
errno = ENOSYS;
return -1;
@@ -793,26 +798,41 @@ static ssize_t uv__fs_write(uv_fs_t* req) {
static ssize_t uv__fs_copyfile(uv_fs_t* req) {
#if defined(__APPLE__) && !TARGET_OS_IPHONE
/* On macOS, use the native copyfile(3). */
static int can_clone;
copyfile_flags_t flags;
char buf[64];
size_t len;
int major;

flags = COPYFILE_ALL;

if (req->flags & UV_FS_COPYFILE_EXCL)
flags |= COPYFILE_EXCL;

#ifdef COPYFILE_CLONE
if (req->flags & UV_FS_COPYFILE_FICLONE)
flags |= COPYFILE_CLONE;
#endif

/* Check OS version. Cloning is only supported on macOS >= 10.12. */
if (req->flags & UV_FS_COPYFILE_FICLONE_FORCE) {
#ifdef COPYFILE_CLONE_FORCE
flags |= COPYFILE_CLONE_FORCE;
#else
return UV_ENOSYS;
#endif
if (can_clone == 0) {
len = sizeof(buf);
if (sysctlbyname("kern.osrelease", buf, &len, NULL, 0))
return UV__ERR(errno);

if (1 != sscanf(buf, "%d", &major))
abort();

can_clone = -1 + 2 * (major >= 16); /* macOS >= 10.12 */
}

if (can_clone < 0)
return UV_ENOSYS;
}

/* copyfile() simply ignores COPYFILE_CLONE if it's not supported. */
if (req->flags & UV_FS_COPYFILE_FICLONE)
flags |= 1 << 24; /* COPYFILE_CLONE */

if (req->flags & UV_FS_COPYFILE_FICLONE_FORCE)
flags |= 1 << 25; /* COPYFILE_CLONE_FORCE */

return copyfile(req->path, req->new_path, NULL, flags);
#else
uv_fs_t fs_req;
Loading