diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gst/mpegaudioparse/gstmpegaudioparse.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2004-03-23 Ronald Bultje <rbultje@ronald.bitfreak.net> + * gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain): + Fix buffer overflow read error. + +2004-03-23 Ronald Bultje <rbultje@ronald.bitfreak.net> + * ext/alsa/gstalsa.h: Remove unused entry. * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps): 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); |