]> 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>
Wed, 11 Jun 2014 21:12:52 +0000 (23:12 +0200)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 16 Jan 2015 12:05:56 +0000 (07:05 -0500)
commit12565bd6138d6d5c0f6f615c55a2609d000e5ed0
tree3368e60ff006e39a56421772bbba811245767c16
parent4b8d4de03832e1975ece4faf4e84ade4db7f2d51
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