mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 20:25:25 +03:00
test-calendarspec: add the test case from oss-fuzz 6886
Before the fix 55a30fd4e8
in this would crash in calendarspec_from_time_t().
This commit is contained in:
parent
3b71cf46be
commit
5ee45c6d63
@ -259,6 +259,7 @@ int main(int argc, char* argv[]) {
|
|||||||
assert_se(calendar_spec_from_string("00:00/60", &c) < 0);
|
assert_se(calendar_spec_from_string("00:00/60", &c) < 0);
|
||||||
assert_se(calendar_spec_from_string("00:00:2300", &c) < 0);
|
assert_se(calendar_spec_from_string("00:00:2300", &c) < 0);
|
||||||
assert_se(calendar_spec_from_string("00:00:18446744073709551615", &c) < 0);
|
assert_se(calendar_spec_from_string("00:00:18446744073709551615", &c) < 0);
|
||||||
|
assert_se(calendar_spec_from_string("@88588582097858858", &c) == -ERANGE);
|
||||||
|
|
||||||
test_timestamp();
|
test_timestamp();
|
||||||
test_hourly_bug_4031();
|
test_hourly_bug_4031();
|
||||||
|
Loading…
Reference in New Issue
Block a user