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:
6d5456c
)
subparse: fix svace issue (add null check)
11/100711/1
accepted/tizen/3.0/common/20161130.064828
accepted/tizen/3.0/ivi/20161130.011807
accepted/tizen/3.0/mobile/20161130.011521
accepted/tizen/3.0/tv/20161130.011642
accepted/tizen/3.0/wearable/20161130.011722
submit/tizen_3.0/20161129.051721
author
Eunhae Choi
<eunhae1.choi@samsung.com>
Tue, 29 Nov 2016 04:45:26 +0000
(13:45 +0900)
committer
eunhae choi
<eunhae1.choi@samsung.com>
Tue, 29 Nov 2016 04:46:41 +0000
(20:46 -0800)
Change-Id: Ie76839a33aa679514737c2e05475a1499d0fb74b
gst/subparse/samiparse.c
patch
|
blob
|
history
diff --git
a/gst/subparse/samiparse.c
b/gst/subparse/samiparse.c
index ed8612437af6fd47c26be807ffcfc690c57fc544..0d0efc189dc0d40aad96f120b15c57f9219df1b7 100644
(file)
--- a/
gst/subparse/samiparse.c
+++ b/
gst/subparse/samiparse.c
@@
-566,6
+566,9
@@
html_context_handle_element (HtmlContext * ctxt,
gchar *attr_name = NULL, *attr_value = NULL;
next = (gchar*)strcasestr (next, "lang:");
+ if (!next)
+ break;
+
attr_value = (gchar*)malloc (3);
next = next + 5;
strncpy (attr_value, next, 2);