From 1f900dc20d2d74a7255f7aeab2304bbed3a7c45c Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 19 Oct 2011 15:28:44 +0100 Subject: [PATCH] vorbisdec: do not try to read past the buffer array https://bugzilla.gnome.org/show_bug.cgi?id=662108 --- ext/vorbis/gstvorbisdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index 9b0b50bd16..9a89fe7fb7 100644 --- a/ext/vorbis/gstvorbisdec.c +++ b/ext/vorbis/gstvorbisdec.c @@ -501,7 +501,7 @@ vorbis_dec_handle_header_caps (GstVorbisDec * vd) GstBuffer *buf = NULL; gint i = 0; - while (result == GST_FLOW_OK) { + while (result == GST_FLOW_OK && i < gst_value_array_get_size (array)) { value = gst_value_array_get_value (array, i); buf = gst_value_get_buffer (value); if (!buf)