[FFmpeg-cvslog] mpegts: fix stack array overread in read_sl_header()
Michael Niedermayer
git at videolan.org
Sat Mar 3 21:25:03 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Mar 3 21:03:11 2012 +0100| [f83687bc78bea7ede4859d363c24a28f0473a5db] | committer: Michael Niedermayer
mpegts: fix stack array overread in read_sl_header()
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f83687bc78bea7ede4859d363c24a28f0473a5db
---
libavformat/mpegts.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index e6c353d..460372c 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1822,7 +1822,7 @@ static int read_packet(AVFormatContext *s, uint8_t *buf, int raw_packet_size)
static int handle_packets(MpegTSContext *ts, int nb_packets)
{
AVFormatContext *s = ts->stream;
- uint8_t packet[TS_PACKET_SIZE];
+ uint8_t packet[TS_PACKET_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
int packet_num, ret = 0;
if (avio_tell(s->pb) != ts->last_pos) {
More information about the ffmpeg-cvslog
mailing list