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:
c6e3d08
)
commiting the fix is better
author
Stéphane Loeuillet
<gstreamer@leroutier.net>
Sun, 16 May 2004 17:11:23 +0000
(17:11 +0000)
committer
Stéphane Loeuillet
<gstreamer@leroutier.net>
Sun, 16 May 2004 17:11:23 +0000
(17:11 +0000)
Original commit message from CVS:
commiting the fix is better
gst/asfdemux/gstasfdemux.c
patch
|
blob
|
history
diff --git
a/gst/asfdemux/gstasfdemux.c
b/gst/asfdemux/gstasfdemux.c
index
c28caf5
..
a51b005
100644
(file)
--- a/
gst/asfdemux/gstasfdemux.c
+++ b/
gst/asfdemux/gstasfdemux.c
@@
-546,12
+546,6
@@
gst_asf_demux_process_comment (GstASFDemux * asf_demux, guint64 * obj_size)
if (gst_bytestream_peek_bytes (bs, &data, lengths[i]) != lengths[i])
goto fail;
- /* check null-termination (malicious input) */
- if (data[lengths[i] - 1] != '\0' || data[lengths[i] - 2] != '\0') {
- gst_bytestream_flush_fast (bs, lengths[i]);
- continue;
- }
-
/* convert to UTF-8 */
utf8_comments[i] = g_convert (data, lengths[i],
"UTF-8", "UTF-16LE", &in, &out, NULL);