diff options
author | tjarlama <59913901+tjarlama@users.noreply.github.com> | 2020-08-12 09:57:26 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 00:27:26 -0400 |
commit | e208100fc9ef14e775927ccb99e934b2007e671f (patch) | |
tree | 200749b32b7bde3180ccbe11e821eb57aab2acac /docs/src/sphinx-plugins/manpage.py | |
parent | ea92e9c720376470676582c3ac1bc9921c9142e7 (diff) | |
download | libuv-e208100fc9ef14e775927ccb99e934b2007e671f.tar.gz libuv-e208100fc9ef14e775927ccb99e934b2007e671f.zip |
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>
Diffstat (limited to 'docs/src/sphinx-plugins/manpage.py')
0 files changed, 0 insertions, 0 deletions