[libcxx-commits] [libcxx] [libc++][hardening] Classify assertions related to leaks and syscalls. (PR #77164)
Will Hawkins via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 9 13:56:21 PST 2024
================
@@ -461,7 +461,7 @@ path __current_path(error_code* ec) {
Deleter deleter = &::free;
#else
auto size = ::pathconf(".", _PC_PATH_MAX);
- _LIBCPP_ASSERT_UNCATEGORIZED(size >= 0, "pathconf returned a 0 as max size");
+ _LIBCPP_ASSERT_VALID_EXTERNAL_API_CALL(size >= 0, "pathconf returned a 0 as max size");
----------------
hawkinsw wrote:
@ldionne Your reading seems to match with the reading that I had from the `man` page and the section that I quoted! I am glad that we are seeing the same thing!
https://github.com/llvm/llvm-project/pull/77164
More information about the libcxx-commits
mailing list