mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 22:00:51 +08:00
avformat/matroskadec: fix invalid check and uninitialized memory access
size is uninitialized when av_dynamic_hdr_smpte2094_app5_alloc failed. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
committed by
Marvin Scholz
parent
1b98286131
commit
9eaa559847
@@ -3973,7 +3973,7 @@ static int matroska_parse_block_additional(MatroskaDemuxContext *matroska,
|
||||
break; // ignore
|
||||
|
||||
hdr_smpte_2094_app5 = av_dynamic_hdr_smpte2094_app5_alloc(&hdr_smpte_2094_app5_size);
|
||||
if (!hdr_smpte_2094_app5_size)
|
||||
if (!hdr_smpte_2094_app5)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
if ((res = av_dynamic_hdr_smpte2094_app5_from_t35(hdr_smpte_2094_app5,
|
||||
|
||||
Reference in New Issue
Block a user