1add_libc_fuzzer( 2 printf_parser_fuzz 3 SRCS 4 printf_parser_fuzz.cpp 5 DEPENDS 6 libc.src.stdio.printf_core.parser 7) 8 9add_libc_fuzzer( 10 printf_float_conv_fuzz 11 NEED_MPFR 12 SRCS 13 printf_float_conv_fuzz.cpp 14 DEPENDS 15 libc.src.stdio.snprintf 16 libc.src.__support.FPUtil.fp_bits 17) 18 19if(LIBC_COMPILER_HAS_FIXED_POINT) 20 add_libc_fuzzer( 21 printf_fixed_conv_fuzz 22 NEED_MPFR 23 SRCS 24 printf_fixed_conv_fuzz.cpp 25 DEPENDS 26 libc.src.stdio.snprintf 27 libc.src.__support.fixed_point.fx_bits 28 COMPILE_OPTIONS 29 -ffixed-point # TODO: add -ffixed-point to fuzz tests automatically 30 ) 31endif() 32