RafaelGSS
bdf069ba0f
2022-09-28, Version 18.10.0 (Current)
...
Notable changes:
doc:
* (SEMVER-MINOR) deprecate modp1, modp2, and modp5 groups (Tobias Nießen) <https://github.com/nodejs/node/pull/44588 >
gyp:
* libnode for ios app embedding (chexiongsheng) <https://github.com/nodejs/node/pull/44210 >
http:
* (SEMVER-MINOR) throw error on content-length mismatch (sidwebworks) (<https://github.com/nodejs/node/pull/44378 >)
stream:
* (SEMVER-MINOR) add `ReadableByteStream.tee()` (Daeyeon Jeong) (<https://github.com/nodejs/node/pull/44505 >)
PR-URL: https://github.com/nodejs/node/pull/44799
v18.10.0
2022-09-27 18:56:26 -03:00
RafaelGSS
6dc038262a
doc: mention git node backport
...
PR-URL: https://github.com/nodejs/node/pull/44764
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:48 -03:00
Rafael Gonzaga
fd971f5176
doc: ensure to revert node_version changes
...
PR-URL: https://github.com/nodejs/node/pull/44760
Reviewed-By: Ruy Adorno <ruyadorno@google.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
2022-09-26 19:07:48 -03:00
Chengzhong Wu
3112d5dae0
test: verify napi_remove_wrap with napi_delete_reference
...
Verify that napi_remove_wrap and napi_delete_reference should be safe
to be called consecutively on the in-out params of napi_wrap.
PR-URL: https://github.com/nodejs/node/pull/44754
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2022-09-26 19:07:48 -03:00
SergeyTsukanov
daf63d2fa3
fs: fix typo in mkdir example
...
PR-URL: https://github.com/nodejs/node/pull/44791
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com >
2022-09-26 19:07:48 -03:00
Madhulika Sharma
b512436841
test: change promises to async/await
...
PR-URL: https://github.com/nodejs/node/pull/44683
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-09-26 19:07:48 -03:00
Daeyeon Jeong
f274b08f8e
doc: fix description for napi_get_cb_info() in n-api.md
...
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/44761
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2022-09-26 19:07:48 -03:00
Nupur Chauhan
858631f720
test: use async/await in test-debugger-invalid-args
...
PR-URL: https://github.com/nodejs/node/pull/44678
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-09-26 19:07:48 -03:00
Meghana Ramesh
6c9ded810c
test: update test-debugger-low-level to use await/async
...
PR-URL: https://github.com/nodejs/node/pull/44688
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-09-26 19:07:47 -03:00
Alan Agius
a2eb55a2c9
lib: don't match sourceMappingURL in strings
...
Prior to this change `sourceMappingURL` in string where being matched
by the RegExp which caused sourcemaps not be loaded when using the
`--enable-source-maps` flag. This commit changes the RegExp to match
the last occurrence.
Fixes: https://github.com/nodejs/node/issues/44654
PR-URL: https://github.com/nodejs/node/pull/44658
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:47 -03:00
Tobias Nießen
945aa74e57
test: check that sysconf returns a positive value
...
Static analysis insists that sysconf(_SC_PAGE_SIZE) might return a
negative integer (even though it never will). This was supposed to be
handled by the existing check EXPECT_GE(page, static_cast<int>(N)).
I assume that static analysis does not consider this sufficient because
static_cast<int>(N) could be negative or zero if N exceeds INT_MAX (even
though it never will).
To resolve this (theoretical) problem, explicitly check that the return
value is positive and then cast it to a size_t.
PR-URL: https://github.com/nodejs/node/pull/44666
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-09-26 19:07:47 -03:00
Node.js GitHub Bot
74dc4d198f
meta: update AUTHORS
...
PR-URL: https://github.com/nodejs/node/pull/44777
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-09-26 19:07:47 -03:00
Daeyeon Jeong and Antoine du Hamel
2502f2353d
doc: update the deprecation for exit code to clarify its scope
...
This updates the deprecation, DEP0164, to clarify its scope.
Previously, `process.exitCode` wasn't mentioned but it needs
to be applied with the same deprecation because its meaning
is the same as the `code` value and it's overridden with the
`code` value in `process.exit()`.
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com >
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/44714
Refs: https://github.com/nodejs/node/pull/44712
Refs: https://github.com/nodejs/node/pull/43738
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:47 -03:00
Michael Dawson
064543d0ae
doc: update guidance for adding new modules
...
- updated based on decision to use node: prefix in
https://github.com/nodejs/TSC/pull/1206
- updated based on agreement in TSC meeting
on adding /promises to existing modules as per
minutes - https://github.com/nodejs/TSC/pull/1281
Signed-off-by: Michael Dawson <mdawson@devrus.com >
PR-URL: https://github.com/nodejs/node/pull/44576
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2022-09-26 19:07:47 -03:00
“Pooja
79f0f48a6f
test: change promise to async/await in debugger-watcher
...
PR-URL: https://github.com/nodejs/node/pull/44687
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-09-26 19:07:47 -03:00
Daeyeon Jeong
3d42aaaac0
stream: handle a pending pull request from a released reader
...
In order to meet the specification, this includes mainly the followings:
- Adding the 'release steps' to ReadableStreamController
- Responding to a pull request from a released reader in
ReadableByteStreamController
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/44702
Refs: https://streams.spec.whatwg.org/#abstract-opdef-readablebytestreamcontroller-releasesteps
Refs: https://streams.spec.whatwg.org/#readable-byte-stream-controller-respond-in-readable-state
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2022-09-26 19:07:47 -03:00
Keeley Hammond
33a2f17534
doc: add registry number for Electron 22
...
PR-URL: https://github.com/nodejs/node/pull/44748
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-09-26 19:07:47 -03:00
Adam Majer
a56cb65bd6
test: fix addon tests compilation with OpenSSL 1.1.1
...
openssl/provider.h header is not part of OpenSSL 1.1.1 so do not
include it when building with an older instance.
Fixes: https://github.com/nodejs/node/issues/44722
PR-URL: https://github.com/nodejs/node/pull/44725
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-09-26 19:07:47 -03:00
Filip Skokan
57dac53c22
doc,crypto: cleanup removed pbkdf2 behaviours
...
PR-URL: https://github.com/nodejs/node/pull/44733
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com >
2022-09-26 19:07:47 -03:00
Evan Lucas
f497368679
benchmark: fix startup benchmark
...
This allows the misc/startup benchmark to run again
after the renaming of the C++ `native_module` to `builtins`
PR-URL: https://github.com/nodejs/node/pull/44727
Refs: https://github.com/nodejs/node/pull/44135
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2022-09-26 19:07:47 -03:00
Lucas Santos
10a0d75c26
doc: include code examples for webstreams consumers
...
Add missing examples for webstreams consumers
Doc URL: https://nodejs.org/api/webstreams.html#streamconsumerstextstream
PR-URL: https://github.com/nodejs/node/pull/44387
Reviewed-By: Erick Wendel <erick.workspace@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2022-09-26 19:07:46 -03:00
Santiago Gimeno
ce1704c2c7
src: avoid using v8 on Isolate termination
...
Fix multiple instances of those uncovered while running the tests on
debug builds.
Fixes: https://github.com/nodejs/node-v8/issues/227
PR-URL: https://github.com/nodejs/node/pull/44669
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2022-09-26 19:07:46 -03:00
chexiongsheng
a6091f5496
gyp: libnode for ios app embedding
...
PR-URL: https://github.com/nodejs/node/pull/44210
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2022-09-26 19:07:46 -03:00
RafaelGSS
4dbe4a010c
doc: mention where to push security commits
...
PR-URL: https://github.com/nodejs/node/pull/44691
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2022-09-26 19:07:46 -03:00
Connor Burton
82cb8151ad
doc: remove extra space on threadpool usage
...
PR-URL: https://github.com/nodejs/node/pull/44734
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-09-26 19:07:46 -03:00
Chengzhong Wu
64cb43a2b6
node-api: add deprecation code of uncaught exception
...
Deprecation should reference a valid deprecation code.
PR-URL: https://github.com/nodejs/node/pull/44624
Refs: https://github.com/nodejs/node/pull/36510
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2022-09-26 19:07:46 -03:00
Jacob Smith
9b3b7d6978
esm,loader: tidy ESMLoader internals
...
PR-URL: https://github.com/nodejs/node/pull/44701
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:45 -03:00
Rich Trott
97d2ed7296
meta: add mailmap entry for dnlup
...
This updates dnlup's name to their preferred email per their last pull
request.
This will also prevent duplicate entries for dnlup when the
update-authors job runs.
It also moves one unrelated line in .mailmap so that all lines are
sorted in lexical order.
PR-URL: https://github.com/nodejs/node/pull/44716
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-09-26 19:07:45 -03:00
0cddb0af99
tools: add update-llhttp.sh
...
PR-URL: https://github.com/nodejs/node/pull/44652
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
Co-authored-by: Tobias Nießen <tniessen@tnie.de >
Co-authored-by: Luigi Pinca <luigipinca@gmail.com >
2022-09-26 19:07:45 -03:00
Node.js GitHub Bot
35fbd2cc14
meta: update AUTHORS
...
PR-URL: https://github.com/nodejs/node/pull/44705
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2022-09-26 19:07:45 -03:00
Tobias Nießen
3036b85d71
src: remove <unistd.h> from node_os.cc
...
The file does not use sysconf() and its use of gethostname() has been
removed, so including <unistd.h> appears to be unnecessary.
PR-URL: https://github.com/nodejs/node/pull/44668
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-09-26 19:07:45 -03:00
Tobias Nießen and James M Snell
ca5fb67b4e
deps: update to ngtcp2 0.8.1 and nghttp3 0.7.0
...
Refs: https://github.com/nodejs/node/pull/44619
Co-authored-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/44622
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:45 -03:00
Maël Nison
4436ffb536
module: open stat/readPackage to mutations
...
PR-URL: https://github.com/nodejs/node/pull/44537
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:45 -03:00
Node.js GitHub Bot
8da1d6ebc4
deps: update corepack to 0.14.1
...
PR-URL: https://github.com/nodejs/node/pull/44704
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:45 -03:00
Tobias Nießen
d36c4a3088
deps: update ngtcp2 update instructions
...
Prefer tagged versions over the latest commit on the development branch,
and a few other minor improvements.
PR-URL: https://github.com/nodejs/node/pull/44619
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:45 -03:00
sidwebworks
f158656e4c
http: throw error on content-length mismatch
...
PR-URL: https://github.com/nodejs/node/pull/44378
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
2022-09-26 19:07:45 -03:00
dnlup
c5c1bc40a2
meta: move dnlup to emeriti
...
PR-URL: https://github.com/nodejs/node/pull/44667
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com >
2022-09-26 19:07:44 -03:00
Rich Trott
6ef9af2748
doc: make legacy banner slightly less bright
...
PR-URL: https://github.com/nodejs/node/pull/44665
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-09-26 19:07:44 -03:00
npm CLI robot
7129106aa0
deps: upgrade npm to 8.19.2
...
PR-URL: https://github.com/nodejs/node/pull/44632
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2022-09-26 19:07:44 -03:00
Yagiz Nizipli
4686579d4b
dns: remove unnecessary parameter from validateOneOf
...
PR-URL: https://github.com/nodejs/node/pull/44635
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com >
2022-09-26 19:07:44 -03:00
Brian Muenzenmeyer
b209c83e66
doc: improve building doc for Windows Powershell
...
PR-URL: https://github.com/nodejs/node/pull/44625
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2022-09-26 19:07:44 -03:00
Tobias Nießen
05b17e9250
doc: maintain only one list of MODP groups
...
There are two lists of MODP groups, one of which is redundant and does
not mark weak groups as deprecated. Remove said list and refer readers
to the first list instead.
Refs: https://github.com/nodejs/node/pull/43986
Refs: https://github.com/nodejs/node/pull/44588
PR-URL: https://github.com/nodejs/node/pull/44644
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2022-09-26 19:07:44 -03:00
smitley
8a68a80a06
test: fix test-performance-measure
...
Refs: https://github.com/nodejs/node/issues/42949
Looking at the documentation for setTimeout
(https://nodejs.org/api/timers.html#settimeoutcallback-delay-args )
there is no guarantee that setTimeout won't complete early.
From the failure of https://github.com/nodejs/node/issues/42949 this
is likely what happened.
I have updated the assert.ok test to allow some variation in
the test.
PR-URL: https://github.com/nodejs/node/pull/44637
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2022-09-26 19:07:44 -03:00
Michael Dawson
ec1cbdb69b
doc: add legendecas to TSC list
...
Refs: https://github.com/nodejs/TSC/issues/1282
Signed-off-by: Michael Dawson <mdawson@devrus.com >
PR-URL: https://github.com/nodejs/node/pull/44662
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:44 -03:00
Luigi Pinca
ef0dc47df9
tools: fix typo in update-nghttp2.sh
...
PR-URL: https://github.com/nodejs/node/pull/44664
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
2022-09-26 19:07:44 -03:00
Lenvin Gonsalves
0df181a5a1
tools: add timezone update workflow
...
Fixes: https://github.com/nodejs/node/issues/43134
PR-URL: https://github.com/nodejs/node/pull/43988
Reviewed-By: Steven R Loomis <srloomis@us.ibm.com >
2022-09-26 19:07:44 -03:00
MURAKAMI Masahiko
55de0136b3
test: improve lib/readline.js coverage
...
PR-URL: https://github.com/nodejs/node/pull/42686
Refs: https://coverage.nodejs.org/coverage-a0461255c05c79cf/lib/readline.js.html#L105
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2022-09-26 19:07:44 -03:00
legendecas
c209bd6fb9
doc,inspector: document changes of inspector.close
...
Retrospectively document the changes history of the `inspector.close`
API.
PR-URL: https://github.com/nodejs/node/pull/44628
Refs: https://github.com/nodejs/node/pull/44489
Refs: https://github.com/nodejs/node/pull/13228
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com >
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com >
2022-09-26 19:07:44 -03:00
Tobias Nießen
752e1472e1
tls: fix out-of-bounds read in ClientHelloParser
...
ClientHelloParser::ParseHeader(data, avail) potentially accesses data
beyond avail bytes because it trusts the client to transmit a valid
frame length. Sending an impossibly small frame length causes the TLS
server to read beyond the buffer provided by the caller.
Guard against this by calling End() on the ClientHelloParser when the
client transmits an impossibly small frame length.
The test is designed to reliable cause a segmentation fault on Linux and
Windows when the buffer overrun occurs, and to trigger a spatial safety
violation when compiled with an address sanitizer enabled or when
running under valgrind.
PR-URL: https://github.com/nodejs/node/pull/44580
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2022-09-26 19:07:44 -03:00
Tobias Nießen
eb3635184b
lib,test: fix bug in InternalSocketAddress
...
InternalSocketAddress must set [kDetails] in order for the inherited
properties to function correctly.
Co-authored-by: Tobias Nießen <tniessen@tnie.de >
PR-URL: https://github.com/nodejs/node/pull/44618
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2022-09-26 19:07:44 -03:00