mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-02 16:46:48 +00:00
avformat/rmdec: zero string destination before use
Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f9677850d99_4635_crashed.rm Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ea1e630c47
commit
b797a00f63
@ -185,6 +185,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
|
||||
avio_read(pb, buf, 4);
|
||||
buf[4] = 0;
|
||||
} else {
|
||||
AV_WL32(buf, 0);
|
||||
get_str8(pb, buf, sizeof(buf)); /* desc */
|
||||
ast->deint_id = AV_RL32(buf);
|
||||
get_str8(pb, buf, sizeof(buf)); /* desc */
|
||||
|
Loading…
Reference in New Issue
Block a user