[all-commits] [llvm/llvm-project] 236383: [libc][realpath] Validate path components.
Jackson Stogel via All-commits
all-commits at lists.llvm.org
Mon Jul 13 21:29:08 PDT 2026
Branch: refs/heads/users/jtstogel/realpath/relative-paths
Home: https://github.com/llvm/llvm-project
Commit: 236383b38e2459967c4350caf0c28afbb2eb9180
https://github.com/llvm/llvm-project/commit/236383b38e2459967c4350caf0c28afbb2eb9180
Author: jtstogel <jtstogel at gmail.com>
Date: 2026-07-13 (Mon, 13 Jul 2026)
Changed paths:
M libc/src/stdlib/linux/CMakeLists.txt
M libc/src/stdlib/linux/realpath.cpp
M libc/test/src/stdlib/realpath_test.cpp
Log Message:
-----------
[libc][realpath] Validate path components.
This PR updates `realpath` to validate paths and return `ENOTDIR` or `ENOENT` according to https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html.
This PR also bumps the memory limit in `HermeticTestUtils.cpp`. The realpath unit tests allocate quite a few strings. Since memory in hermetic tests is never free'd, the unit test quickly reaches the limit.
Commit: 028c709510105dccab0a76cd43ebe191920a0f59
https://github.com/llvm/llvm-project/commit/028c709510105dccab0a76cd43ebe191920a0f59
Author: jtstogel <jtstogel at gmail.com>
Date: 2026-07-13 (Mon, 13 Jul 2026)
Changed paths:
M libc/src/stdlib/linux/CMakeLists.txt
M libc/src/stdlib/linux/realpath.cpp
M libc/test/src/stdlib/CMakeLists.txt
M libc/test/src/stdlib/realpath_test.cpp
Log Message:
-----------
[libc][realpath] Support relative paths
Compare: https://github.com/llvm/llvm-project/compare/89bdc0f7809d...028c70951010
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list