slomo gst-plugins-bad: gst-plugins-bad/ gst-plugins-bad/gst/flv/
[email protected] Wed, 3 Dec 2008 03:43:14 -0800 (PST)
| Newsgroups | gmane.comp.video.gstreamer.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVS Root: /cvs/gstreamer
Module: gst-plugins-bad
Changes by: slomo
Date: Wed Dec 03 2008 11:43:14 UTC
Log message:
* gst/flv/gstflvparse.c: (FLV_GET_STRING):
Check if strings are valid UTF8 before using them.
Modified files:
. : ChangeLog
gst/flv : gstflvparse.c
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.3780&r2=1.3781
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/flv/gstflvparse.c.diff?r1=1.29&r2=1.30
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v
retrieving revision 1.3780
retrieving revision 1.3781
diff -u -d -r1.3780 -r1.3781
--- ChangeLog 3 Dec 2008 10:15:25 -0000 1.3780
+++ ChangeLog 3 Dec 2008 11:42:59 -0000 1.3781
@@ -1,5 +1,10 @@
2008-12-03 Sebastian Dröge <[email protected]>
+ * gst/flv/gstflvparse.c: (FLV_GET_STRING):
+ Check if strings are valid UTF8 before using them.
+
+2008-12-03 Sebastian Dröge <[email protected]>
* gst/mxf/mxfparse.c:
Remove FIXME, zero-ULs and UMIDs are really invalid and we can
use them as "unset" value.
Index: gstflvparse.c
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/flv/gstflvparse.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- gstflvparse.c 24 Nov 2008 11:17:19 -0000 1.29
+++ gstflvparse.c 3 Dec 2008 11:43:00 -0000 1.30
@@ -52,6 +52,10 @@
}
memcpy (string, str, string_size);
+ if (!g_utf8_validate (string, string_size, NULL)) {
+ g_free (string);
+ return NULL;
+ }
return string;
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose