Files
clang-p2996/libc/fuzzing/string/CMakeLists.txt
Nick Desaulniers 431ea2d076 [libc] move bcmp, bzero, bcopy, index, rindex, strcasecmp, strncasecmp to strings.h (#118899)
docgen relies on the convention that we have a file foo.cpp in
libc/src/\<header\>/. Because the above functions weren't in libc/src/strings/
but rather libc/src/string/, docgen could not find that we had implemented
these.

Rather than add special carve outs to docgen, let's fix up our sources for
these 7 functions to stick with the existing conventions the rest of the
codebase follows.

Link: #118860
Fixes: #118875
2024-12-10 08:58:45 -08:00

43 lines
565 B
CMake

add_libc_fuzzer(
strcmp_fuzz
SRCS
strcmp_fuzz.cpp
DEPENDS
libc.src.string.strcmp
)
add_libc_fuzzer(
strcpy_fuzz
SRCS
strcpy_fuzz.cpp
DEPENDS
libc.src.string.memcpy
libc.src.string.strcpy
libc.src.string.strlen
)
add_libc_fuzzer(
strstr_fuzz
SRCS
strstr_fuzz.cpp
DEPENDS
libc.src.string.strstr
libc.src.string.strlen
)
add_libc_fuzzer(
memcmp_fuzz
SRCS
memcmp_fuzz.cpp
DEPENDS
libc.src.string.memcmp
)
add_libc_fuzzer(
bcmp_fuzz
SRCS
bcmp_fuzz.cpp
DEPENDS
libc.src.strings.bcmp
)