diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-10-19 15:28:44 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-10-19 16:45:06 +0200 |
commit | 1f900dc20d2d74a7255f7aeab2304bbed3a7c45c (patch) | |
tree | 037f832840715fd7944b754758be4bddc31375a4 /ext | |
parent | 43928e33e6ec9817c9c8ef3e289442b646508168 (diff) |
vorbisdec: do not try to read past the buffer array
https://bugzilla.gnome.org/show_bug.cgi?id=662108
Diffstat (limited to 'ext')
-rw-r--r-- | ext/vorbis/gstvorbisdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index 9b0b50bd1..9a89fe7fb 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) |