mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 15:46:17 +01:00
GDateTime: Add guards to g_date_time_new()
https://bugzilla.gnome.org/show_bug.cgi?id=728401
This commit is contained in:
parent
f18811f2dc
commit
88b284c070
@ -944,6 +944,8 @@ g_date_time_new (GTimeZone *tz,
|
||||
GDateTime *datetime;
|
||||
gint64 full_time;
|
||||
|
||||
g_return_val_if_fail (tz != NULL, NULL);
|
||||
|
||||
if (year < 1 || year > 9999 ||
|
||||
month < 1 || month > 12 ||
|
||||
day < 1 || day > 31 ||
|
||||
|
Loading…
Reference in New Issue
Block a user