This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)


On 06/11/2014 10:52 PM, Florian Weimer wrote:
POSIX requires that we make a copy, so we allocate a new string and free
it in posix_spawn_file_actions_destroy.

The reporters (David Reid, Alex Gaynor, and Glyph Lefkowitz) are
concerned that not the old behavior could result in security
vulnerabilities in applications, and I agree that this cannot be ruled out.


Hi,

on s390 the test elf/check-localplt fails with this patch due to a call to strdup@plt in function posix_spawn_file_actions_addopen.

Including string.h solves the issue on s390/s390x.
Please retest and commit.

Bye

---
2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>

	* posix/spawn_faction_addopen.c:
	Include string.h to avoid strdup@plt call.
---

Attachment: posix_spawn_strdupplt_12062014
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]