xmptag: Stop parsing GPS coordinate if sscanf() fails

CID 1139610
This commit is contained in:
Sebastian Dröge 2017-08-04 13:39:04 +03:00
parent 6105420bfc
commit f996b05644

View file

@ -485,7 +485,8 @@ deserialize_exif_gps_coordinate (XmpTag * xmptag, GstTagList * taglist,
/* check if it uses ,SS or .mm */
if (strchr (current, ',') != NULL) {
sscanf (current, "%d,%d%c", &m, &s, &c);
if (!sscanf (current, "%d,%d%c", &m, &s, &c))
goto error;
} else {
gchar *copy = g_strdup (current);
gint len = strlen (copy);