[FFmpeg-cvslog] avformat/avidec: initialize header array
Michael Niedermayer
git at videolan.org
Thu Mar 5 18:47:52 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 5 18:29:50 2015 +0100| [8a048fe6f8bf41de93c091a7a9b3132bedc1b41c] | committer: Michael Niedermayer
avformat/avidec: initialize header array
Fixes use of uninitialized memory in case read fails
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8a048fe6f8bf41de93c091a7a9b3132bedc1b41c
---
libavformat/avidec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 54c87a2..8a0938d 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -136,7 +136,7 @@ static inline int get_duration(AVIStream *ast, int len)
static int get_riff(AVFormatContext *s, AVIOContext *pb)
{
AVIContext *avi = s->priv_data;
- char header[8];
+ char header[8] = {0};
int i;
/* check RIFF header */
More information about the ffmpeg-cvslog
mailing list