mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +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:
parent
d449d63a0d
commit
bcaabf481d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue