summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--gst/flv/gstflvparse.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index dd5689b0..4381c2f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-12-03 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+ * gst/flv/gstflvparse.c: (FLV_GET_STRING):
+ Check if strings are valid UTF8 before using them.
+
+2008-12-03 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+
* gst/mxf/mxfparse.c:
Remove FIXME, zero-ULs and UMIDs are really invalid and we can
use them as "unset" value.
diff --git a/gst/flv/gstflvparse.c b/gst/flv/gstflvparse.c
index c4a3cb94..b15a65ba 100644
--- a/gst/flv/gstflvparse.c
+++ b/gst/flv/gstflvparse.c
@@ -52,6 +52,10 @@ FLV_GET_STRING (GstByteReader * reader)
}
memcpy (string, str, string_size);
+ if (!g_utf8_validate (string, string_size, NULL)) {
+ g_free (string);
+ return NULL;
+ }
return string;
}