gst-plugins-ugly: a52dec: fix read buffer overflow upon syncing

Vincent Penquerc'h vincent at kemper.freedesktop.org
Thu Jan 19 07:27:34 PST 2012


Module: gst-plugins-ugly
Branch: master
Commit: 1651493ae0e20c91b3a46e950339fa1eb6d977ea
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=1651493ae0e20c91b3a46e950339fa1eb6d977ea

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Thu Jan 19 15:26:25 2012 +0000

a52dec: fix read buffer overflow upon syncing

The wrong size was being decremented, leading to a runaway
read loop.

---

 ext/a52dec/gsta52dec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c
index 18ea1da..3ada93f 100644
--- a/ext/a52dec/gsta52dec.c
+++ b/ext/a52dec/gsta52dec.c
@@ -309,7 +309,7 @@ gst_a52dec_parse (GstAudioDecoder * bdec, GstAdapter * adapter,
   bit_rate = a52dec->bit_rate;
   sample_rate = a52dec->sample_rate;
   flags = 0;
-  while (av >= 7) {
+  while (size >= 7) {
     length = a52_syncinfo (data, &flags, &sample_rate, &bit_rate);
 
     if (length == 0) {



More information about the gstreamer-commits mailing list