libuv/src
tjarlama e208100fc9
fs: clobber req->path on uv_fs_mkstemp() error
Contents of template variable passed for posix call mkstemp on error
code EINVAL is unknown. On AIX platform, template will get clobbered
on EINVAL and any attempt to read template might result in error.

In libuv, req->path is passed directly to the mkstemp call and
behavior of this string on error is platform dependent. To avoid
portability issues, it's better to have a common behavior on all
platform. For both unix and windows platform libuv will rewrite path
with an empty string on all error cases.

Fixes: https://github.com/libuv/libuv/issues/2913
Refs: https://github.com/nodejs/node/pull/33549
Refs: https://github.com/libuv/libuv/pull/2933
PR-URL: https://github.com/libuv/libuv/pull/2938
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
2020-08-12 00:27:26 -04:00
..
unix fs: clobber req->path on uv_fs_mkstemp() error 2020-08-12 00:27:26 -04:00
win fs: clobber req->path on uv_fs_mkstemp() error 2020-08-12 00:27:26 -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 heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
idna.c unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
idna.h unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
inet.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
random.c netbsd: use KERN_ARND sysctl to get entropy 2019-10-29 13:36:05 +01:00
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 unix,win: add uv_library_shutdown() 2020-04-22 12:24:36 +02:00
timer.c timer: remove redundant check in heap compare 2020-04-16 14:54:51 +02:00
uv-common.c core: add API to measure event loop idle time 2020-08-04 10:31:42 -04:00
uv-common.h core: add API to measure event loop idle time 2020-08-04 10:31:42 -04:00
uv-data-getter-setters.c test,sunos: fix statement not reached warnings 2019-03-16 13:22:16 -04:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00