From 9f8cc912274545e48e54c02d99bc6f106053f208 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 8 Dec 2003 22:07:57 +0000 Subject: [PATCH] Changed a >= test to a > on the input buffer size in gst_tag_list_from_vorbiscomment_buffer. This was preventing the ... Original commit message from CVS: Changed a >= test to a > on the input buffer size in gst_tag_list_from_vorbiscomment_buffer. This was preventing the parsing of vorbiscomments not ending with a sync byte (which seems to happen in flac files) --- gst/tags/gstvorbistag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/tags/gstvorbistag.c b/gst/tags/gstvorbistag.c index 6c319755b4..41e4a3ca31 100644 --- a/gst/tags/gstvorbistag.c +++ b/gst/tags/gstvorbistag.c @@ -328,7 +328,7 @@ gst_tag_list_from_vorbiscomment_buffer (const GstBuffer *buffer, const guint8 *i cur_size = GUINT32_FROM_LE (*((guint32 *) data)); \ data += 4; \ size -= 4; \ - if (cur_size >= size) goto error; \ + if (cur_size > size) goto error; \ cur = data; \ }G_STMT_END gchar *cur, *value;