[libc-commits] [libc] 452276e - [libc] Fix missing errno include in fuzzer (#144132)
via libc-commits
libc-commits at lists.llvm.org
Fri Jun 13 11:00:11 PDT 2025
Author: Michael Jones
Date: 2025-06-13T11:00:08-07:00
New Revision: 452276ecc0f5d1cb9bf5e1655e422a68eafdb8b9
URL: https://github.com/llvm/llvm-project/commit/452276ecc0f5d1cb9bf5e1655e422a68eafdb8b9
DIFF: https://github.com/llvm/llvm-project/commit/452276ecc0f5d1cb9bf5e1655e422a68eafdb8b9.diff
LOG: [libc] Fix missing errno include in fuzzer (#144132)
The printf parser uses errno for setting up the %m conversion. It was
presumably getting this include indirectly until a recent change. This
patch adds a direct dependency to fix it.
Added:
Modified:
libc/fuzzing/stdio/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/fuzzing/stdio/CMakeLists.txt b/libc/fuzzing/stdio/CMakeLists.txt
index 8f89baa702000..401785a30469c 100644
--- a/libc/fuzzing/stdio/CMakeLists.txt
+++ b/libc/fuzzing/stdio/CMakeLists.txt
@@ -4,6 +4,7 @@ add_libc_fuzzer(
printf_parser_fuzz.cpp
DEPENDS
libc.src.stdio.printf_core.parser
+ libc.src.errno.errno # needed for the strerror conversion
)
add_libc_fuzzer(
More information about the libc-commits
mailing list