mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
subparse: fix null pointer access in sami parser
https://bugzilla.gnome.org/show_bug.cgi?id=712805
This commit is contained in:
parent
5d7125413e
commit
a81b2380cf
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ html_context_handle_element (HtmlContext * ctxt,
|
|||
|
||||
attrs = g_new0 (gchar *, (count + 1) * 2);
|
||||
|
||||
for (i = 0; i < count; i += 2) {
|
||||
for (i = 0; i < count && next != NULL; i += 2) {
|
||||
gchar *attr_name = NULL, *attr_value = NULL;
|
||||
gsize length;
|
||||
next = string_token (next + 1, "=", &attr_name);
|
||||
|
|
Loading…
Reference in a new issue