projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d71254
)
subparse: fix null pointer access in sami parser
author
Jihyun Cho
<jihyun.jo@gmail.com>
Thu, 21 Nov 2013 13:04:46 +0000
(22:04 +0900)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 21 Nov 2013 16:34:04 +0000
(16:34 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=712805
gst/subparse/samiparse.c
patch
|
blob
|
history
diff --git
a/gst/subparse/samiparse.c
b/gst/subparse/samiparse.c
index
973192c
..
517e959
100644
(file)
--- a/
gst/subparse/samiparse.c
+++ b/
gst/subparse/samiparse.c
@@
-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);