[all-commits] [llvm/llvm-project] 0fb8ae: [libc][realpath] Validate path components.
Jackson Stogel via All-commits
all-commits at lists.llvm.org
Fri Jul 17 10:50:56 PDT 2026
Branch: refs/heads/users/jtstogel/realpath/validate-path
Home: https://github.com/llvm/llvm-project
Commit: 0fb8ae25e23f6023f69ea2fff08ac9d8b34097b0
https://github.com/llvm/llvm-project/commit/0fb8ae25e23f6023f69ea2fff08ac9d8b34097b0
Author: jtstogel <jtstogel at gmail.com>
Date: 2026-07-17 (Fri, 17 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.
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