mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Merge branch 'ossfuzz-9815-time-signed-arithmetic' into 'master'
gtimer: Ensure arithmetic is correctly signed for ISO 8601 parsing See merge request GNOME/glib!240
This commit is contained in:
commit
cce309aebb
@ -497,7 +497,7 @@ g_time_val_from_iso8601 (const gchar *iso_date,
|
||||
if (min > 59)
|
||||
return FALSE;
|
||||
|
||||
time_->tv_sec = mktime_utc (&tm) + (time_t) (60 * (60 * hour + min) * sign);
|
||||
time_->tv_sec = mktime_utc (&tm) + (time_t) (60 * (gint64) (60 * hour + min) * sign);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user