From 5ee45c6d63c63c6ef9880c71c2070611e5dc8d2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 13 Mar 2018 12:51:08 +0100 Subject: [PATCH] test-calendarspec: add the test case from oss-fuzz 6886 Before the fix 55a30fd4e8 in this would crash in calendarspec_from_time_t(). --- src/test/test-calendarspec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c index 1a95b60..cce305e 100644 --- a/src/test/test-calendarspec.c +++ b/src/test/test-calendarspec.c @@ -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:2300", &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_hourly_bug_4031(); -- 2.7.4