Fuzzing: Guide the compiler to the right ctor of QCalendar
Change-Id: I4e828f6ce33636eaef4f51e94e0879d735736ef1 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
9ce4241ef3
commit
129b0a8d34
@ -101,7 +101,7 @@ extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size)
|
||||
|
||||
QDateTime::fromString(userString, formats[0], QCalendar(QCalendar::System::Gregorian));
|
||||
for (int sys = int(QCalendar::System::Julian); sys <= int(QCalendar::System::Last); ++sys)
|
||||
QDateTime::fromString(userString, formats[0], QCalendar(sys));
|
||||
QDateTime::fromString(userString, formats[0], QCalendar(QCalendar::System(sys)));
|
||||
|
||||
for (const auto &format : formats) {
|
||||
#ifdef LOG_FORMAT
|
||||
|
Loading…
x
Reference in New Issue
Block a user