projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f18811f
)
GDateTime: Add guards to g_date_time_new()
author
Bastien Nocera
<hadess@hadess.net>
Thu, 17 Apr 2014 07:18:14 +0000
(09:18 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 28 Jun 2014 17:46:17 +0000
(13:46 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=728401
glib/gdatetime.c
patch
|
blob
|
history
diff --git
a/glib/gdatetime.c
b/glib/gdatetime.c
index
2d20679
..
cbbf620
100644
(file)
--- a/
glib/gdatetime.c
+++ b/
glib/gdatetime.c
@@
-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 ||