mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
xmptag: Stop parsing GPS coordinate if sscanf() fails
CID 1139610
This commit is contained in:
parent
6105420bfc
commit
f996b05644
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue