Myles Borins
9441526bbe
2018-01-13, Version 6.13.0 'Boron' (LTS)
...
This LTS release comes with 112 commits, 17 of which are considered
Semver-Minor. This includes 32 which are doc related, 30 which are test
related, 8 which are build / tool related and 1 commit which updates
a dependency.
Notable Changes:
* console:
- added console.count() and console.clear() (James M Snell)
https://github.com/nodejs/node/pull/12678
* crypto:
- expose ECDH class (Bryan English)
https://github.com/nodejs/node/pull/8188
- added cypto.randomFill() and crypto.randomFillSync() (Evan Lucas)
https://github.com/nodejs/node/pull/10209
- warn on invalid authentication tag length (Tobias Nießen)
https://github.com/nodejs/node/pull/17566
* deps:
- upgrade libuv to 1.16.1 (cjihrig)
https://github.com/nodejs/node/pull/16835
* dgram:
- added socket.setMulticastInterface() (Will Young)
https://github.com/nodejs/node/pull/7855
* http:
- add agent.keepSocketAlive and agent.reuseSocket as to allow
overridable keep-alive behavior of `Agent` (Fedor Indutny)
https://github.com/nodejs/node/pull/13005
* lib:
- return this from net.Socket.end() (Sam Roberts)
https://github.com/nodejs/node/pull/13481
* module:
- add builtinModules api that provides list of all builtin modules in
Node (Jon Moss)
https://github.com/nodejs/node/pull/16386
* net:
- return this from getConnections() (Sam Roberts)
https://github.com/nodejs/node/pull/13553
* promises:
- more robust stringification for unhandled rejections (Timothy Gu)
https://github.com/nodejs/node/pull/13784
* repl:
- improve require() autocompletion (Alexey Orlenko)
https://github.com/nodejs/node/pull/14409
* src:
- add openssl-system-ca-path configure option (Daniel Bevenius)
https://github.com/nodejs/node/pull/16790
- add --use-bundled-ca --use-openssl-ca check (Daniel Bevenius)
https://github.com/nodejs/node/pull/12087
- add process.ppid (cjihrig)
https://github.com/nodejs/node/pull/16839
* tls:
- accept `lookup` option for `tls.connect()` (Fedor Indutny)
https://github.com/nodejs/node/pull/12839
* tools, build:
- a new macOS installer! (JP Wesselink)
https://github.com/nodejs/node/pull/15179
* url:
- WHATWG URL api support (James M Snell)
https://github.com/nodejs/node/pull/7448
* util:
- add %i and %f formatting specifiers (Roman Reiss)
https://github.com/nodejs/node/pull/10308
PR-URL: https://github.com/nodejs/node/pull/18342
2018-02-13 02:02:18 -05:00
Tobias Nießen
691cd5a3d1
crypto: warn on invalid authentication tag length
...
Backport-PR-URL: https://github.com/nodejs/node/pull/18347
PR-URL: https://github.com/nodejs/node/pull/17566
Refs: https://github.com/nodejs/node/issues/17523
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-02-12 19:28:39 -05:00
Anna Henningsen
9181fbb699
src: dumb down code by removing std::move
...
This would require C++11 features that would
otherwise not be available on clang + OS X on Node 6.x.
PR-URL: https://github.com/nodejs/node/pull/18324
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
2018-02-12 19:28:37 -05:00
Anna Henningsen
57865a9213
src: use correct OOB check for IPv6 parsing
...
`last_piece` pointed to the end of the 8×16 bit array,
so `piece_pointer == last_piece` already means that the pointer
is not writable any longer.
Previously, this still worked most of the time but could
result in an out-of-bounds-write.
Also, rename `last_piece` to `buffer_end` to avoid this pitfall.
Backport-PR-URL: https://github.com/nodejs/node/pull/18324
PR-URL: https://github.com/nodejs/node/pull/17470
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
2018-02-12 19:28:37 -05:00
Anna Henningsen
f306d3eb7a
src: make url host a proper C++ class
...
- Gives `URLHost` a proper destructor that clears memory
depending on the type of the host (This fixes a memory leak)
- Hide the host type enums and class layout as implementation details
- Make the `Parse` methods members of `URLHost`
- Turn `WriteHost` into a `ToString()` method on the `URLHost` class
- Verify that at the beginning of a parse attempt, the type is set
to “failed”
- Remove a lot of `goto`s from the source code 🐢 🚀
Backport-PR-URL: https://github.com/nodejs/node/pull/18324
PR-URL: https://github.com/nodejs/node/pull/17470
Fixes: https://github.com/nodejs/node/issues/17448
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
2018-02-12 19:28:37 -05:00
Anna Henningsen
1976c7c7a5
src: move url internals into anonymous namespace
...
This helps because `static` doesn’t work for C++ classes,
but refactoring `url_host` into a proper C++ class seems the
most reasonable soluation for the memory leak fixed by the next commit.
Backport-PR-URL: https://github.com/nodejs/node/pull/18324
PR-URL: https://github.com/nodejs/node/pull/17470
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
2018-02-12 19:28:36 -05:00
Anna Henningsen
d66f469931
src: minor cleanups to node_url.cc
...
- Remove pointless pointers
- Make `WriteHost` take a const argument so that it’s functionality
is clear from the signature
- Make `FindLongestZeroSequence` templated to accommodate the constness
in `WriteHost` and because using `uint16_t` is an articifial,
unnecessary restriction
- Remove string copying when no copies are needed
- Make `PercentDecode` just return its return value
- Make `ParseHost` (string-only version) take its constant argument
as a constant reference
Backport-PR-URL: https://github.com/nodejs/node/pull/18324
PR-URL: https://github.com/nodejs/node/pull/17470
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
2018-02-12 19:28:36 -05:00
Daniel Bevenius
4b4e4db1c1
crypto: add ocsp_request ClientHelloParser::Reset
...
I noticed that ocsp_request is not being reset in
ClientHelloParser::Reset. I've not been able to figure out the
the reason for this and wanted to bring this up just in case this
was overlooked and should be reset.
PR-URL: https://github.com/nodejs/node/pull/17753
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-02-12 19:28:28 -05:00
Daniel Bevenius
c377d2299a
crypto: remove unused header in clienthello.h
...
This commit removes stdlib.h header as it does not seem to be used any
more.
PR-URL: https://github.com/nodejs/node/pull/17752
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2018-02-12 19:28:22 -05:00
Anna Henningsen
979af518c1
src: remove nonexistent method from header file
...
PR-URL: https://github.com/nodejs/node/pull/17748
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-02-12 19:28:21 -05:00
Anna Henningsen
56e1586608
tls: unconsume stream on destroy
...
When the TLS stream is destroyed for whatever reason,
we should unset all callbacks on the underlying transport
stream.
PR-URL: https://github.com/nodejs/node/pull/17478
Fixes: https://github.com/nodejs/node/issues/17475
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: Jan Krems <jan.krems@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-02-12 19:28:14 -05:00
Daniel Bevenius
2268d00e38
src: add openssl-system-ca-path configure option
...
The motivation for this commit is that we need to specify system CA
certificates when building node. While we are aware of the environment
variable NODE_EXTRA_CA_CERTS this is not a great solution as we build
an RPM and we also don't want users to be able to unset them.
The suggestion is to add a configure time property like this:
--openssl-system-ca-path=OPENSSL_SYSTEM_CA_PATH
Use the specified path to system CA (PEM format) in
addition to the OpenSSL supplied CA store or compiled-
in Mozilla CA copy.
Usage example:
$ ./configure --openssl-system-ca-path=/etc/pki/tls/certs/ca-bundle.crt
This would add the specified CA certificates in addition to the ones
already being used.
Backport-PR-URL: https://github.com/nodejs/node/pull/18173
PR-URL: https://github.com/nodejs/node/pull/16790
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2018-02-12 19:28:12 -05:00
Timothy Gu
c64a73ba6c
promises: more robust stringification
...
Backport-PR-URL: https://github.com/nodejs/node/pull/17833
PR-URL: https://github.com/nodejs/node/pull/13784
Fixes: https://github.com/nodejs/node/issues/13771
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-02-12 19:28:11 -05:00
James M Snell
24def19417
url: adding WHATWG URL support
...
Implements WHATWG URL support. Example:
```
var u = new url.URL('http://example.org ');
```
Many, many other commits improving the implementation have been squashed
into this backport PR. They are not listed separately here for brevity.
Backport-PR-URL: https://github.com/nodejs/node/pull/17365
PR-URL: https://github.com/nodejs/node/pull/7448
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com >
2018-02-12 19:28:11 -05:00
Timothy Gu
60b10f0896
url: update IDNA handling
...
Remove custom tests for invalid IDNA domains in url-idna.js in favor of
the more comprehensive official set.
Backport-PR-URL: https://github.com/nodejs/node/pull/17365
PR-URL: https://github.com/nodejs/node/pull/13362
Refs: https://github.com/whatwg/url/pull/309
Refs: https://github.com/w3c/web-platform-tests/pull/5976
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2018-02-12 19:28:10 -05:00
Timothy Gu
a6d2384c9a
src: clean up MaybeStackBuffer
...
- Add IsInvalidated() method
- Add capacity() method for finding out the actual capacity, not the
current size, of the buffer
- Make IsAllocated() work for invalidated buffers
- Allow multiple calls to AllocateSufficientStorage() and Invalidate()
- Assert buffer is malloc'd in Release()
- Assert buffer has not been invalidated in AllocateSufficientStorage()
- Add more descriptive comments describing the purpose of the methods
- Add cctest for MaybeStackBuffer
Backport-PR-URL: https://github.com/nodejs/node/pull/17365
PR-URL: https://github.com/nodejs/node/pull/11464
Reviewed-By: Steven R Loomis <srloomis@us.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-02-12 19:28:09 -05:00
Daniel Bevenius
ddd9d85681
crypto: remove BIO_set_shutdown
...
I've not been able to find any reason for calling
BIO_set_shutdown(bio, 1). This is done by default for the following
versions of OpenSSL:
https://github.com/openssl/openssl/blob/OpenSSL_1_1_0/
crypto/bio/bio_lib.c#L26
https://github.com/openssl/openssl/blob/OpenSSL_1_0_1/
crypto/bio/bio_lib.c#L90
https://github.com/openssl/openssl/blob/OpenSSL_1_0_2/
crypto/bio/bio_lib.c#L88
https://github.com/openssl/openssl/blob/OpenSSL_1_0_0/
crypto/bio/bio_lib.c#L90
This commit removes the call and the comment.
Backport-PR-URL: https://github.com/nodejs/node/pull/17784
PR-URL: https://github.com/nodejs/node/pull/17542
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-02-12 19:28:09 -05:00
Daniel Bevenius
9f3b4ad5bd
src: fix incorrect macro comment
...
Commit de168b4b4a ("src: guard
bundled_ca/openssl_ca with HAVE_OPENSSL") included an incorrect end
macro comment which this commit fixes.
PR-URL: https://github.com/nodejs/node/pull/12688
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-02-12 19:28:09 -05:00
Daniel Bevenius
2b29cea1b4
src: guard bundled_ca/openssl_ca with HAVE_OPENSSL
...
Currently, the following warning will be reported when configuring
without-ssl:
../src/node.cc:3653:8: warning: unused variable 'use_bundled_ca'
[-Wunused-variable]
bool use_bundled_ca = false;
^
../src/node.cc:3654:8: warning: unused variable 'use_openssl_ca'
[-Wunused-variable]
bool use_openssl_ca = false;
^
I missed this when working on
commit 8a7db9d4b5 ("src: add
--use-bundled-ca --use-openssl-ca check").
Refs: https://github.com/nodejs/node/pull/12087
Backport-PR-URL: https://github.com/nodejs/node/pull/17783
PR-URL: https://github.com/nodejs/node/pull/12302
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2018-02-12 19:28:08 -05:00
Daniel Bevenius
758dc81e8d
src: add --use-bundled-ca --use-openssl-ca check
...
The --use-bundled-ca and --use-openssl-ca command line arguments are
mutually exclusive but can both be used on the same command line.
This commit adds a check if both options are used.
Fixes: https://github.com/nodejs/node/issues/12083
Backport-PR-URL: https://github.com/nodejs/node/pull/17783
PR-URL: https://github.com/nodejs/node/pull/12087
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2018-02-12 19:28:08 -05:00
cjihrig
2d4fca2c41
src: add process.ppid
...
Fixes: https://github.com/nodejs/node/issues/14957
PR-URL: https://github.com/nodejs/node/pull/16839
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-02-12 19:28:08 -05:00
Will Young
8f2e52abd7
dgram: added setMulticastInterface()
...
Add wrapper for uv's uv_udp_set_multicast_interface which provides the
sender side mechanism to explicitly select an interface. The
equivalent receiver side mechanism is the optional 2nd argument of
addMembership().
PR-URL: https://github.com/nodejs/node/pull/7855
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2018-02-12 19:28:05 -05:00
Evan Lucas
6f62f83468
crypto: add randomFill and randomFillSync
...
crypto.randomFill and crypto.randomFillSync are similar to
crypto.randomBytes, but allow passing in a buffer as the first
argument. This allows us to reuse buffers to prevent having to
create a new one on every call.
PR-URL: https://github.com/nodejs/node/pull/10209
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2018-02-12 19:28:00 -05:00
Anatoli Papirovski
a301c1a0e0
net: fix timeouts during long writes
...
Add updateWriteQueueSize which updates and returns queue size
(net & tls). Make _onTimeout check whether an active write
is ongoing and if so, call _unrefTimer rather than emitting
a timeout event.
Add http & https test that checks whether long-lasting (but
active) writes timeout or can finish writing as expected.
Backport-PR-URL: https://github.com/nodejs/node/pull/16420
PR-URL: https://github.com/nodejs/node/pull/15791
Fixes: https://github.com/nodejs/node/issues/15082
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2018-01-02 14:06:34 -05:00
Anatoli Papirovski
521dc2511f
tls: properly track writeQueueSize during writes
...
Make writeQueueSize represent the actual size of the write queue
within the TLS socket. Add tls test to confirm that bufferSize
works as expected.
Backport-PR-URL: https://github.com/nodejs/node/pull/16420
PR-URL: https://github.com/nodejs/node/pull/15791
Fixes: https://github.com/nodejs/node/issues/15005
Refs: https://github.com/nodejs/node/pull/15006
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2018-01-02 14:06:34 -05:00
Myles Borins
99af46e92c
Working on v6.12.4
...
PR-URL: https://github.com/nodejs/node/pull/17776
2018-01-02 14:05:57 -05:00
Myles Borins
d5fbd254ef
2018-01-02, Version 6.12.3 'Boron' (LTS)
...
Notable Changes:
* build:
- configure can now be run from any directory (Gibson Fahnestock)
https://github.com/nodejs/node/pull/17321
PR-URL: https://github.com/nodejs/node/pull/17776
2018-01-02 12:48:26 -05:00
Daniel Bevenius
2d74af0184
src: remove unused include node_crypto_clienthello
...
This commit removes the include of node.h which does not seem to be
used.
PR-URL: https://github.com/nodejs/node/pull/17546
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-12-20 01:16:33 +00:00
Daniel Bevenius
b563908ff9
crypto: use SetNull instead of Set
...
This commit updates the only usage of Set(Null(env->isolate()) to use
SetNull() instead which is used in other places in node_crypto.cc.
PR-URL: https://github.com/nodejs/node/pull/17521
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2017-12-20 00:47:43 +00:00
Daniel Bevenius
6792998f6a
src: make base64.h self-contained
...
This commit includes stdint.h (for uint8_t, uint32_t, and int8_t) to
make it self-contained.
PR-URL: https://github.com/nodejs/node/pull/17177
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
2017-12-19 22:14:54 +00:00
Alexey Orlenko
84a8861b62
src: remove unprofessional slang in assertions
...
Convert `CHECK(0 && "wtf?")` (sic) assertions to more suitable
`UNREACHABLE()` macro invocations in `node_zlib.cc`.
PR-URL: https://github.com/nodejs/node/pull/17166
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
2017-12-19 15:49:17 -05:00
Witthawat Piwawatthanapanit
f11acca80c
src: fix size of CounterSet
...
PR-URL: https://github.com/nodejs/node/pull/16984
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-12-19 15:25:35 -05:00
Myles Borins
113674181d
Working on v6.12.3
...
PR-URL: https://github.com/nodejs/node/pull/17533
2017-12-08 10:54:29 -05:00
Myles Borins
381f5ec383
2017-12-08, Version 6.12.2 'Boron' (LTS)
...
This is a security release. All Node.js users should consult the
security release summary at
https://nodejs.org/en/blog/vulnerability/december-2017-security-releases/
for details on patched vulnerabilities.
Fixes for the following CVEs are included in this release:
* CVE-2017-15896
* CVE-2017-3738 (from the openssl project)
Notable Changes:
* deps:
* openssl updated to 1.0.2n (Shigeki Ohtsu)
https://github.com/nodejs/node/pull/17526
PR-URL: https://github.com/nodejs/node/pull/17533
2017-12-07 18:53:50 -05:00
Myles Borins
157d4b11c5
Working on v6.12.2
...
PR-URL: https://github.com/nodejs/node/pull/17180
2017-12-05 09:03:16 -05:00
Myles Borins
4a99c2bf85
2017-12-05, Version 6.12.1 'Boron' (LTS)
...
Notable Changes:
* build:
- fix npm install with --shared (Ben Noordhuis)
https://github.com/nodejs/node/pull/16438
* build:
- building with python 3 is now supported (Emily Marigold Klassen)
https://github.com/nodejs/node/pull/16058
* src:
- v8 options can be specified with either '\_' or '-' in NODE_OPTIONS
(Sam Roberts) https://github.com/nodejs/node/pull/14093
PR-URL: https://github.com/nodejs/node/pull/17180
2017-11-28 14:15:40 +09:00
Daniel Bevenius
ae3ad5502b
src: remove unused includes from node_wrap.h
...
I cannot find any usages of these includes and think they can be
removed.
Backport-PR-URL: https://github.com/nodejs/node/pull/17092
PR-URL: https://github.com/nodejs/node/pull/16179
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-11-28 13:11:08 +09:00
Huáng Jùnliàng
644989cf6a
fs: use Number::New since all fields are uint64_t
...
PR-URL: https://github.com/nodejs/node/pull/16705
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Khaidi Chu <i@2333.moe >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2017-11-28 13:11:07 +09:00
Huáng Jùnliàng
925e58fecb
fs: fix stat dev unsigned cast overflow
...
The `dev_t` is unsigned on Linux, use Integer::NewFromUnsigned to fix cast overflow
PR-URL: https://github.com/nodejs/node/pull/16705
Fixes: https://github.com/nodejs/node/issues/16496
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Khaidi Chu <i@2333.moe >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2017-11-28 13:11:07 +09:00
Joyee Cheung
a368e5fa63
src: make StreamBase prototype accessors robust
...
This PR makes the prototype accessors added by StreamBase::AddMethods
nonenumerable and checks the signatures in the accessors so they
throw instead of raising assertions when called with incompatible
receivers. They could be enumerated when inspecting the prototype
with util.inspect or the inspector protocol.
PR-URL: https://github.com/nodejs/node/pull/16860
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-11-28 13:11:02 +09:00
cjihrig
c79dd9e3ce
src: CHECK() for argument overflow in Spawn()
...
This commit adds checks for overflow to args and env in Spawn().
It seems extremely unlikely that either of these values would
overflow from a valid use case.
Fixes: https://github.com/nodejs/node/issues/15622
PR-URL: https://github.com/nodejs/node/pull/16761
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-11-28 13:11:00 +09:00
Ben Noordhuis
7c69ca58e0
src: move handle properties to prototype
...
Reduce the size of wrap objects by moving a couple of accessors from the
instance template to the prototype template. They occupied one slot per
instance instead of one slot per class.
This commit fixes some instances of unwrapping twice since that code had
to be updated anyway to use `args.This()` instead of `args.Holder()`.
PR-URL: https://github.com/nodejs/node/pull/16482
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-11-28 13:10:53 +09:00
Ben Noordhuis
c87a620ed8
src: remove superfluous HandleScope
...
Accessors implicitly run inside a HandleScope, UDPWrap::GetFD() doesn't
need to create one explicitly.
PR-URL: https://github.com/nodejs/node/pull/16482
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-11-28 13:10:53 +09:00
Daniel Bevenius
2f5edc6fd5
src: remove unused include in tty_wrap.h
...
This commit removes the unused handle_wrap.h and instead adds uv.h which
is used.
PR-URL: https://github.com/nodejs/node/pull/16379
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2017-11-28 13:10:46 +09:00
Joyee Cheung
42cb64ee91
src: fix etw provider include on Windows
...
Backport-PR-URL: https://github.com/nodejs/node/pull/16610
PR-URL: https://github.com/nodejs/node/pull/16639
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-11-28 13:10:31 +09:00
Joyee Cheung
b00ced5b52
src: do not include x.h if x-inl.h is included
...
Backport-PR-URL: https://github.com/nodejs/node/pull/16610
Fixes: https://github.com/nodejs/node/issues/16519
PR-URL: https://github.com/nodejs/node/pull/16548
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-11-28 13:10:31 +09:00
Joyee Cheung
a4688b0c43
src: make header file self-contained
...
Make node_crypto_clienthello-inl.h self-contained.
Backport-PR-URL: https://github.com/nodejs/node/pull/16610
PR-URL: https://github.com/nodejs/node/pull/16518
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-11-28 13:10:31 +09:00
Daniel Bevenius
cf80089477
src: node_dtrace line continuations clean up
...
PR-URL: https://github.com/nodejs/node/pull/15777
Reviewed-By: Lance Ball <lball@redhat.com >
2017-11-28 13:10:10 +09:00
Daniel Bevenius
4639cfff0a
src: rename perfctr_macros.py->noperfctr_macros.py
...
This commit renames perfctr_macros.py to be consistent with the other
macro python scripts nolttng_macros.py, and notrace_macros.py.
PR-URL: https://github.com/nodejs/node/pull/16100
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-11-28 13:10:07 +09:00
Thomas Corbière
70f574e6ff
src: add help for NODE_PENDING_DEPRECATION env
...
PR-URL: https://github.com/nodejs/node/pull/15609
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-11-28 13:09:54 +09:00