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)
This commit is contained in:
Christophe Fergeau 2003-12-08 22:07:57 +00:00
parent 8b84e06993
commit 9f8cc91227

View file

@ -328,7 +328,7 @@ gst_tag_list_from_vorbiscomment_buffer (const GstBuffer *buffer, const guint8 *i
cur_size = GUINT32_FROM_LE (*((guint32 *) data)); \ cur_size = GUINT32_FROM_LE (*((guint32 *) data)); \
data += 4; \ data += 4; \
size -= 4; \ size -= 4; \
if (cur_size >= size) goto error; \ if (cur_size > size) goto error; \
cur = data; \ cur = data; \
}G_STMT_END }G_STMT_END
gchar *cur, *value; gchar *cur, *value;