]> Savannah Git Hosting - gnulib.git/commit
posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2019 14:51:51 +0000 (16:51 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2019 15:25:03 +0000 (17:25 +0200)
commitb827d8a6fab0c25eaf0c59b94c5bbef00efeeae5
tree5e38e1a3d9e4af4ca7599b6db5fa2785a83ddf9d
parent765146c33361b46aa2c592e980b16069094c6000
posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.

* lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
* lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
a copy of the path argument.
* lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
it.
ChangeLog
lib/spawn_faction_addchdir.c
lib/spawn_faction_destroy.c
lib/spawn_int.h