commiting the fix is better
authorStéphane Loeuillet <gstreamer@leroutier.net>
Sun, 16 May 2004 17:11:23 +0000 (17:11 +0000)
committerSté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

index c28caf5..a51b005 100644 (file)
@@ -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);