libuv/src
Ben Noordhuis 1fc72276f9
win: fix uv_spawn() ENOMEM on empty env
Commit ba780231 ("unix,win: handle zero-sized allocations uniformly")
makes `uv__malloc()` return NULL when `size == 0`.

That's exactly the size that is passed to it when uv_spawn() tries to
spawn a process with an empty environment so handle that edge case.

Fixes: https://github.com/nodejs/node/issues/29008
PR-URL: https://github.com/libuv/libuv/pull/2408
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jameson Nash <vtjnash+github@gmail.com>
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
2019-08-09 09:59:47 -04:00
..
unix unix: fix unused-function warning on BSD 2019-08-07 13:49:51 -04:00
win win: fix uv_spawn() ENOMEM on empty env 2019-08-09 09:59:47 -04:00
fs-poll.c unix,win: fix uv_fs_poll_stop() when active 2019-05-06 15:02:01 +02:00
heap-inl.h
idna.c
idna.h
inet.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
queue.h
strscpy.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
strscpy.h unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
threadpool.c threadpool: increase UV_THREADPOOL_SIZE limit 2019-06-07 10:59:44 +02:00
timer.c
uv-common.c unix,win: add ability to retrieve all env variables 2019-08-03 08:33:42 +02:00
uv-common.h unix,win: add uv_fs_{open,read,close}dir() 2019-03-26 18:47:51 -04:00
uv-data-getter-setters.c test,sunos: fix statement not reached warnings 2019-03-16 13:22:16 -04:00
version.c