Skip to content
Snippets Groups Projects
Commit 7b393fce authored by Philip Withnall's avatar Philip Withnall
Browse files

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: default avatarPhilip Withnall <withnall@endlessm.com>
parent c39f1b6e
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment