From: Zbigniew Jędrzejewski-Szmek Date: Sat, 16 Mar 2019 09:57:12 +0000 (+0100) Subject: fuzz-calendarspec: actually run the second part of the fuzzer X-Git-Tag: v242-rc1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcaabf481d2f12659463e97177eb1ba700ff3988;p=thirdparty%2Fsystemd.git fuzz-calendarspec: actually run the second part of the fuzzer https://github.com/systemd/systemd/pull/11975#issuecomment-473467475 --- diff --git a/src/fuzz/fuzz-calendarspec.c b/src/fuzz/fuzz-calendarspec.c index 55d86134948..8f031503e95 100644 --- a/src/fuzz/fuzz-calendarspec.c +++ b/src/fuzz/fuzz-calendarspec.c @@ -14,7 +14,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { str = memdup_suffix0(data, size); - if (calendar_spec_from_string(str, &cspec) > 0) { + if (calendar_spec_from_string(str, &cspec) >= 0) { (void) calendar_spec_valid(cspec); (void) calendar_spec_normalize(cspec); (void) calendar_spec_to_string(cspec, &p);