Skip to content

gdatetime: Fix error handling in g_date_time_new_week()

It was possible to pass in (for example) an invalid year to g_date_time_new_week(), which would be passed on to g_date_time_new(), which would (correctly) return NULL — but then g_date_time_get_week_number() would try to dereference that.

Includes a test case.

oss-fuzz#17648

Signed-off-by: Philip Withnall withnall@endlessm.com

Merge request reports