diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-14 03:58:18 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-14 04:46:11 +0400 |
commit | 5f00b333a4c3cae7a16bfc94a463ee3b6d97fc21 (patch) | |
tree | 81947e2d1d255187c28570e4266b0a229836b4c4 /libavcodec/vc1dec.c | |
parent | cf95dee3de5930172900ef36e376c8a7f31988bc (diff) |
avcodec/vc1dec: zero SpriteData struct
Fixes use of uninitialized data, as alternative alpha could be
calculated conditionally
Fixes part of msan_uninit-mem_7f51a8b0b3b0_1009_Arlington.wmv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index edddc483a2..daa62d6298 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -5459,6 +5459,8 @@ static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb) AVCodecContext *avctx = s->avctx; SpriteData sd; + memset(&sd, 0, sizeof(sd)); + vc1_parse_sprites(v, gb, &sd); if (!s->current_picture.f.data[0]) { |