diff --git a/test/fuzzing/chrono_duration.cpp b/test/fuzzing/chrono_duration.cpp index 9cb24947c690..a7a142d10c87 100644 --- a/test/fuzzing/chrono_duration.cpp +++ b/test/fuzzing/chrono_duration.cpp @@ -13,9 +13,17 @@ template void invoke_inner(fmt::string_view formatstring, const Item item) { const std::chrono::duration value(item); try { - //std::string message = fmt::format(formatstring, value); + // Don't switch these two dynamically, + // there is already a large combinatoric explosion + // of type and ratio, causing afl to suffer and the corpus + // getting enormous. Occasionally, flip this switch and + // try manually. +#if 0 + std::string message = fmt::format(formatstring, value); +#else fmt::memory_buffer buf; fmt::format_to(buf, formatstring, value); +#endif } catch (std::exception& e) { } }