Skip to content

Commit

Permalink
Fuzzing: Guide the compiler to the right ctor of QCalendar
Browse files Browse the repository at this point in the history
Change-Id: I4e828f6ce33636eaef4f51e94e0879d735736ef1
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
rlohning committed Jul 26, 2021
1 parent 9ce4241 commit 129b0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/libfuzzer/corelib/time/qdatetime/fromstring/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 129b0a8

Please sign in to comment.