GNOME Bugzilla – Bug 540012
g_date_add_days should check for overflow
Last modified: 2018-04-12 10:17:05 UTC
g_date_add_days should check for overflow before it adds. Otherwise you can get a g_date_valid date that isn't valid.
Created attachment 117285 [details] [review] Add missing g_return_if_fail check in g_date_add_days
note that julian_days is always 32 bit, so it may be better to use an explicit constant instead of G_MAXUINT.
Duplicate of bug #335731. *** This bug has been marked as a duplicate of bug 335731 ***