posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)
authorFlorian Weimer <fweimer@redhat.com>
Wed, 11 Jun 2014 21:12:52 +0000 (23:12 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 11 Jun 2014 21:13:42 +0000 (23:13 +0200)
commit89e435f3559c53084498e9baad22172b64429362
tree6bd069da0346ea8cb18e506b8e10252bc3a8b33a
parentc3a2ebe1f7541cc35937621e08c28ff88afd0845
posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)

POSIX requires that we make a copy, so we allocate a new string
and free it in posix_spawn_file_actions_destroy.

Reported by David Reid, Alex Gaynor, and Glyph Lefkowitz.  This bug
may have security implications.
ChangeLog
NEWS
posix/spawn_faction_addopen.c
posix/spawn_faction_destroy.c
posix/spawn_int.h
posix/tst-spawn.c