mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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.
This commit is contained in:
parent
6db4c47337
commit
845f850c41
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2004-03-23 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* ext/alsa/gstalsa.h:
|
* ext/alsa/gstalsa.h:
|
||||||
|
|
|
@ -330,7 +330,7 @@ gst_mp3parse_chain (GstPad * pad, GstData * _data)
|
||||||
GST_DEBUG ("mp3parse: offset %ld, size %ld ", offset, size);
|
GST_DEBUG ("mp3parse: offset %ld, size %ld ", offset, size);
|
||||||
|
|
||||||
/* search for a possible start byte */
|
/* search for a possible start byte */
|
||||||
for (; ((data[offset] != 0xff) && (offset < size)); offset++)
|
for (; ((offset < size - 4) && (data[offset] != 0xff)); offset++)
|
||||||
skipped++;
|
skipped++;
|
||||||
if (skipped && !mp3parse->in_flush) {
|
if (skipped && !mp3parse->in_flush) {
|
||||||
GST_DEBUG ("mp3parse: **** now at %ld skipped %d bytes", offset, skipped);
|
GST_DEBUG ("mp3parse: **** now at %ld skipped %d bytes", offset, skipped);
|
||||||
|
|
Loading…
Reference in a new issue