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] |
On 01/11/2018 11:03 PM, Dmitry V. Levin wrote:
[BZ #22679] CVE-2018-1000001 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to generic_getcwd if the path returned by getcwd syscall is not absolute. * sysdeps/unix/sysv/linux/tst-getcwd-abspath.c: New test. * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-getcwd-abspath.
The patch as such looks good to me. The test case should go into the top-level io directory, where getcwd resides. I don't think it is Linux-specific. Can you move it and commit it?
I still think we should have a realpath test as well, but that should delaying committing this fix.
Thanks, Florian
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |