]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 15 Jan 2015 20:16:54 +0000 (15:16 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 15 Jan 2015 20:16:54 +0000 (15:16 -0500)
commitf7865ec21e8ad32929509796497fa3b44c3ef826
treec373a461dc63de6e98356f25437d8967101411ee
parentc7a91d241b095855e06e0bd00287968df2f6d87e
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