mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 23:17:41 +08:00
libavformat/takdec.c: Fix msan error
Make sure we are reading 16 bytes for the MD5 Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:

committed by
James Almer

parent
df824211c2
commit
1d244c641b
@ -116,7 +116,8 @@ static int tak_read_header(AVFormatContext *s)
|
||||
if (size != 19)
|
||||
return AVERROR_INVALIDDATA;
|
||||
ffio_init_checksum(pb, tak_check_crc, 0xCE04B7U);
|
||||
avio_read(pb, md5, 16);
|
||||
if (avio_read(pb, md5, 16) != 16)
|
||||
return AVERROR(EIO);
|
||||
if (ffio_get_checksum(s->pb) != avio_rb24(pb)) {
|
||||
av_log(s, AV_LOG_ERROR, "MD5 metadata block CRC error.\n");
|
||||
if (s->error_recognition & AV_EF_EXPLODE)
|
||||
|
Reference in New Issue
Block a user