diff options
author | cjihrig <cjihrig@gmail.com> | 2019-04-15 11:28:16 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-04-22 12:04:35 -0400 |
commit | aec2ce4ee11c766d4c7fcc532f794a758404a6c7 (patch) | |
tree | 9426e0d8e92a314c6f23290a2939cd45c418cf3b /deps/uv/src/unix/linux-core.c | |
parent | 2161690024862fbfc23c4e01d98199acb832f76b (diff) | |
download | android-node-v8-aec2ce4ee11c766d4c7fcc532f794a758404a6c7.tar.gz android-node-v8-aec2ce4ee11c766d4c7fcc532f794a758404a6c7.tar.bz2 android-node-v8-aec2ce4ee11c766d4c7fcc532f794a758404a6c7.zip |
deps: upgrade to libuv 1.28.0
Notable changes:
- uv_gettimeofday() has been added.
- Streaming readdir() via the uv_fs_{open,read,close}dir() methods.
- A macOS copyfile() permissions bug has been fixed.
- A bug in uv_interface_addresses() on machines with multiple
interfaces has been fixed.
Fixes: https://github.com/nodejs/node/issues/27273
PR-URL: https://github.com/nodejs/node/pull/27241
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/uv/src/unix/linux-core.c')
-rw-r--r-- | deps/uv/src/unix/linux-core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/deps/uv/src/unix/linux-core.c b/deps/uv/src/unix/linux-core.c index 7165fe2fb4..f8973bb36b 100644 --- a/deps/uv/src/unix/linux-core.c +++ b/deps/uv/src/unix/linux-core.c @@ -860,7 +860,8 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) { return 0; } - *addresses = uv__malloc(*count * sizeof(**addresses)); + /* Make sure the memory is initiallized to zero using calloc() */ + *addresses = uv__calloc(*count, sizeof(**addresses)); if (!(*addresses)) { freeifaddrs(addrs); return UV_ENOMEM; @@ -902,8 +903,6 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) { if (strcmp(address->name, ent->ifa_name) == 0) { sll = (struct sockaddr_ll*)ent->ifa_addr; memcpy(address->phys_addr, sll->sll_addr, sizeof(address->phys_addr)); - } else { - memset(address->phys_addr, 0, sizeof(address->phys_addr)); } address++; } |