projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f4a8cc
)
matroskademux: Fix off-by-one in validation of UTF-8
author
Seán de Búrca
<leftmostcat@gmail.com>
Wed, 11 Sep 2013 19:11:58 +0000
(13:11 -0600)
committer
Sebastian Dröge
<slomo@circular-chaos.org>
Thu, 12 Sep 2013 07:19:15 +0000
(09:19 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=707933
gst/matroska/matroska-demux.c
patch
|
blob
|
history
diff --git
a/gst/matroska/matroska-demux.c
b/gst/matroska/matroska-demux.c
index
fb1670b
..
d5d705e
100644
(file)
--- a/
gst/matroska/matroska-demux.c
+++ b/
gst/matroska/matroska-demux.c
@@
-3007,7
+3007,7
@@
gst_matroska_demux_check_subtitle_buffer (GstElement * element,
return GST_FLOW_OK;
if (!sub_stream->invalid_utf8) {
- if (g_utf8_validate ((gchar *) map.data, map.size, NULL)) {
+ if (g_utf8_validate ((gchar *) map.data, map.size
- 1
, NULL)) {
goto next;
}
GST_WARNING_OBJECT (element, "subtitle stream %" G_GUINT64_FORMAT