projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d759265
)
[MOVED FROM BAD 48/57] gst/flv/gstflvparse.c: Check if strings are valid UTF8 before...
author
Sebastian Dröge
<slomo@circular-chaos.org>
Wed, 3 Dec 2008 11:43:00 +0000
(11:43 +0000)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Tue, 12 May 2009 19:21:01 +0000
(21:21 +0200)
Original commit message from CVS:
* gst/flv/gstflvparse.c: (FLV_GET_STRING):
Check if strings are valid UTF8 before using them.
gst/flv/gstflvparse.c
patch
|
blob
|
history
diff --git
a/gst/flv/gstflvparse.c
b/gst/flv/gstflvparse.c
index c4a3cb946c523d1935719edf8f9f787af1fc90ed..b15a65ba9f3fdb8b837e7c81e48bacd600fce743 100644
(file)
--- 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;
}