From: <sl...@ke...> - 2008-12-03 11:57:11
|
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 <seb...@co...> + * gst/flv/gstflvparse.c: (FLV_GET_STRING): + Check if strings are valid UTF8 before using them. + +2008-12-03 Sebastian Dröge <seb...@co...> * 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; } |