projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5c390b
)
asfdemux: Reset number of languages to 0 when freeing the array because of errors
28/158928/1
accepted/tizen_4.0_unified
tizen_4.0
accepted/tizen/4.0/unified/20171108.063625
submit/tizen_4.0/20171107.050710
tizen_4.0.IoT.p2_release
author
Eunhae Choi
<eunhae1.choi@samsung.com>
Thu, 2 Nov 2017 12:26:13 +0000
(21:26 +0900)
committer
Gilbok Lee
<gilbok.lee@samsung.com>
Mon, 6 Nov 2017 03:00:46 +0000
(12:00 +0900)
Otherwise we will happily index into the array at NULL if the requested
index is smaller than the number of languages that were previously
allocated.
https://bugzilla.gnome.org/show_bug.cgi?id=777937
Change-Id: If6257d541c5a1e55241a53d33896a719fb99713a
gst/asfdemux/gstasfdemux.c
patch
|
blob
|
history
diff --git
a/gst/asfdemux/gstasfdemux.c
b/gst/asfdemux/gstasfdemux.c
index 4bf0619b8f2d515cc7ccc8fd662ba3b6e17358d7..e35271e3ac041add2916dcd1ddc0630818c32ca7 100644
(file)
--- a/
gst/asfdemux/gstasfdemux.c
+++ b/
gst/asfdemux/gstasfdemux.c
@@
-3719,6
+3719,7
@@
not_enough_data:
GST_WARNING_OBJECT (demux, "short read parsing language list object!");
g_free (demux->languages);
demux->languages = NULL;
+ demux->num_languages = 0;
return GST_FLOW_OK; /* not fatal */
}
}