mirror of
https://github.com/systemd/systemd.git
synced 2026-08-08 17:10:55 +00:00
fuzz-calendarspec: actually run the second part of the fuzzer
https://github.com/systemd/systemd/pull/11975#issuecomment-473467475
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user