diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-03-24 04:21:38 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-03-24 04:21:38 +0000 |
commit | 845f850c41c0c7b684e098f2c06861330e971df7 (patch) | |
tree | 55fed96ccf00fdac5aa5463d7d7567fa0bf6215c /gst/mpegaudioparse | |
parent | 6db4c473372a6fdc8388cdd3bc8da714575b2c05 (diff) | |
download | gst-plugins-bad-845f850c41c0c7b684e098f2c06861330e971df7.tar.gz gst-plugins-bad-845f850c41c0c7b684e098f2c06861330e971df7.tar.bz2 gst-plugins-bad-845f850c41c0c7b684e098f2c06861330e971df7.zip |
gst/mpegaudioparse/gstmpegaudioparse.c: Fix buffer overflow read error.
Original commit message from CVS:
* gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain):
Fix buffer overflow read error.
Diffstat (limited to 'gst/mpegaudioparse')
-rw-r--r-- | gst/mpegaudioparse/gstmpegaudioparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index 4e5b9b00..a4152dea 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -330,7 +330,7 @@ gst_mp3parse_chain (GstPad * pad, GstData * _data) GST_DEBUG ("mp3parse: offset %ld, size %ld ", offset, size); /* search for a possible start byte */ - for (; ((data[offset] != 0xff) && (offset < size)); offset++) + for (; ((offset < size - 4) && (data[offset] != 0xff)); offset++) skipped++; if (skipped && !mp3parse->in_flush) { GST_DEBUG ("mp3parse: **** now at %ld skipped %d bytes", offset, skipped); |