From de070b3297e3fed418c05a2d5945a6670e5144e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Loeuillet?= Date: Sun, 16 May 2004 17:11:23 +0000 Subject: [PATCH] commiting the fix is better Original commit message from CVS: commiting the fix is better --- gst/asfdemux/gstasfdemux.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index c28caf5bcf..a51b005aee 100644 --- 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);