diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2020-02-08 12:28:34 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2020-02-08 12:28:34 +0100 |
commit | ea3a5318abb318872830f3fdf739aee0e42ed82c (patch) | |
tree | bea6a8e64d1bd4f1a848b77cc775352069310496 /docs/src | |
parent | fb4c5631325e49363ebe72076a0d422fd9e5e627 (diff) | |
download | libuv-ea3a5318abb318872830f3fdf739aee0e42ed82c.tar.gz libuv-ea3a5318abb318872830f3fdf739aee0e42ed82c.zip |
unix: fix error path in uv_setup_args()
Only update the `process_title` struct on success, otherwise it points
to memory libuv doesn't own. Notably, libuv only owns `argv[0]` _after_
copying the argv table.
PR-URL: https://github.com/libuv/libuv/pull/2668
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions