OSS-Fuzz: Add new fuzzer and corpora targets datetime process (PR #26963)

61 views
Skip to first unread message

Arthur Chan

unread,
Sep 2, 2026, 11:58:46 AMSep 2
to wx-...@googlegroups.com, Subscribed

This PR creates a new fuzzer for wxwidgets project targets datetime process with seeds.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26963

Commit Summary

  • 8a0b841 OSS-Fuzz: Add new fuzzer and corpora targets datetime process

File Changes

(20 files)

Patch Links:

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963@github.com>

VZ

unread,
Sep 3, 2026, 6:02:13 PMSep 3
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26963)

Thanks, this looks good, but I'd like to ask if you've already run this locally for testing? Because I'm a bit afraid we're going to get many problem reports for this code which had been never fuzzed before...

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/c5532711734@github.com>

Arthur Chan

unread,
Oct 5, 2026, 12:03:12 AM (10 days ago) Oct 5
to wx-...@googlegroups.com, Subscribed
arthurscchan left a comment (wxWidgets/wxWidgets#26963)

Sorry for the late reply cause I am kept busy on some other items. I will try running this locally for much longer time and came back with an estimated result. Thanks and sorry for keeping this a bit longer.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/c5987874443@github.com>

Arthur Chan

unread,
Oct 8, 2026, 3:59:12 AM (7 days ago) Oct 8
to wx-...@googlegroups.com, Push

@arthurscchan pushed 1 commit.

  • 1b0047c Update assertion handling

—
View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/before/8a0b84198298d77d604de2232edd5b24e921cc2d/after/1b0047cbd5d56b08a50a58bcce9e50c4eb8074ae@github.com>

Arthur Chan

unread,
Oct 8, 2026, 4:19:48 AM (7 days ago) Oct 8
to wx-...@googlegroups.com, Subscribed
arthurscchan left a comment (wxWidgets/wxWidgets#26963)

Indeed, it got into some assertion errors. I have fixed that and run for 15 mins it keep increasing in coverage. So now it is good.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/c6055763457@github.com>

VZ

unread,
Oct 8, 2026, 7:41:12 AM (7 days ago) Oct 8
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26963)

OK, thanks, let's merge it and see what it finds.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/c6059071982@github.com>

VZ

unread,
Oct 8, 2026, 7:47:04 AM (7 days ago) Oct 8
to wx-...@googlegroups.com, Subscribed

Merged #26963 into master.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/issue_event/32783424025@github.com>

VZ

unread,
Oct 10, 2026, 7:24:16 PM (4 days ago) Oct 10
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26963)

Actually we shouldn't disable asserts in the fuzzers, any input (even invalid) shouldn't result in asserts... And, moreover, it breaks when testing locally using the instructions in tests/fuzz/runner.cpp because the asserts don't get disabled in this case.

But the main problem is that I've already got a couple of failures in OSS-Fuzz and I can't reproduce one of them locally for some reason: both 0 Feb 16 00:00 G is supposed to result in the following error:

include/wx/longlong.h:151:16: runtime error: signed integer overflow: -9223372036829575808 - 85624192 cannot be represented in type 'long long'
	    #0 0x58fbbb164482 in operator-= [wxwidgets/include/wx/longlong.h:151](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/include/wx/longlong.h#L151):16
	    #1 0x58fbbb164482 in wxDateTime::GetTm(wxDateTime::TimeZone const&) const [wxwidgets/src/common/datetime.cpp:1514](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/src/common/datetime.cpp#L1514):18
	    #2 0x58fbbb167fb4 in GetYear [wxwidgets/include/wx/datetime.h:768](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/include/wx/datetime.h#L768):22
	    #3 0x58fbbb167fb4 in wxDateTime::IsDST(wxDateTime::Country) const [wxwidgets/src/common/datetime.cpp:2104](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/src/common/datetime.cpp#L2104):20
	    #4 0x58fbbb16890a in wxDateTime::MakeFromTimezone(wxDateTime::TimeZone const&, bool) [wxwidgets/src/common/datetime.cpp:2155](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/src/common/datetime.cpp#L2155):21
	    #5 0x58fbbb176f00 in MakeFromUTC [wxwidgets/include/wx/datetime.h:732](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/include/wx/datetime.h#L732):18
	    #6 0x58fbbb176f00 in wxDateTime::ParseRFC822TimeZone(wxString::const_iterator*, wxString::const_iterator const&) [wxwidgets/src/common/datetimefmt.cpp:859](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/src/common/datetimefmt.cpp#L859):5
	    #7 0x58fbbb177bd7 in wxDateTime::ParseRfc822Date(wxString const&, wxString::const_iterator*) [wxwidgets/src/common/datetimefmt.cpp:1022](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/src/common/datetimefmt.cpp#L1022):11
	    #8 0x58fbbb1189a1 in LLVMFuzzerTestOneInput [wxwidgets/tests/fuzz/datetime.cpp:84](https://github.com/wxWidgets/wxWidgets/blob/51952bd3a8df8a18b412b08493d2f9a21b5b1d08/tests/fuzz/datetime.cpp#L84):13
	    #9 0x58fbbb06f8ed in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:619:13
	    #10 0x58fbbb05a662 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:329:6
	    #11 0x58fbbb060530 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:865:9
	    #12 0x58fbbb08c062 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
	    #13 0x7aa3c6863082 in __libc_start_main /build/glibc-B3wQXB/glibc-2.31/csu/libc-start.c:308:16
	    #14 0x58fbbb05374d in _start

but doesn't here.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/c6103282176@github.com>

Arthur Chan

unread,
Oct 11, 2026, 12:13:46 AM (4 days ago) Oct 11
to wx-...@googlegroups.com, Subscribed
arthurscchan left a comment (wxWidgets/wxWidgets#26963)

OK. I will followup on that, sorry for the mess.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26963/c6105330951@github.com>

Reply all
Reply to author
Forward
0 new messages