From 56f7cf3fa979de415174a10b18221727e3138b7b Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Thu, 30 May 2019 06:25:10 +0200 Subject: [PATCH] allow negative values again --- fuzzing/chrono_duration.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fuzzing/chrono_duration.cpp b/fuzzing/chrono_duration.cpp index ad4aa1c1018b..69b9f2341dad 100644 --- a/fuzzing/chrono_duration.cpp +++ b/fuzzing/chrono_duration.cpp @@ -30,10 +30,13 @@ template void doit(const uint8_t* Data, std::size_t Size) { Data += N; Size -= N; - if(std::is_floating_point::value || std::numeric_limits::is_signed) { - if(item<0) { - //avoid problems with negative numbers until https://github.com/fmtlib/fmt/issues/1178 is solved - return; + // see https://github.com/fmtlib/fmt/issues/1178 + const bool github_1178_is_solved=true; + if(!github_1178_is_solved) { + if(std::is_floating_point::value || std::numeric_limits::is_signed) { + if(item<0) { + return; + } } }