mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
cf95dee3de
commit
5f00b333a4
@ -5459,6 +5459,8 @@ static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb)
|
|||||||
AVCodecContext *avctx = s->avctx;
|
AVCodecContext *avctx = s->avctx;
|
||||||
SpriteData sd;
|
SpriteData sd;
|
||||||
|
|
||||||
|
memset(&sd, 0, sizeof(sd));
|
||||||
|
|
||||||
vc1_parse_sprites(v, gb, &sd);
|
vc1_parse_sprites(v, gb, &sd);
|
||||||
|
|
||||||
if (!s->current_picture.f.data[0]) {
|
if (!s->current_picture.f.data[0]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user