From bcaabf481d2f12659463e97177eb1ba700ff3988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 16 Mar 2019 10:57:12 +0100 Subject: [PATCH] fuzz-calendarspec: actually run the second part of the fuzzer https://github.com/systemd/systemd/pull/11975#issuecomment-473467475 --- src/fuzz/fuzz-calendarspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);