[FFmpeg-cvslog] lavf/img2dec: Initialize a stack variable.
Carl Eugen Hoyos
git at videolan.org
Sun Aug 10 18:54:15 CEST 2014
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Aug 10 17:45:05 2014 +0200| [273fc0139e0add4b45d40849ff88c6df5a7e819b] | committer: Carl Eugen Hoyos
lavf/img2dec: Initialize a stack variable.
Fixes a valgrind warning about using unitialised memory.
Hopefully fixes crashes on several platforms reported through fate.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=273fc0139e0add4b45d40849ff88c6df5a7e819b
---
libavformat/img2dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index b9a1bcf..d70fc75 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -395,7 +395,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
}
if (codec->codec_id == AV_CODEC_ID_NONE) {
- AVProbeData pd;
+ AVProbeData pd = { 0 };
AVInputFormat *ifmt;
uint8_t header[PROBE_BUF_MIN + AVPROBE_PADDING_SIZE];
int ret;
More information about the ffmpeg-cvslog
mailing list