You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/movtextdec: Improve size check
Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -537,8 +537,8 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
|
|||||||
m->size_var = 8;
|
m->size_var = 8;
|
||||||
//size_var is equal to 8 or 16 depending on the size of box
|
//size_var is equal to 8 or 16 depending on the size of box
|
||||||
|
|
||||||
if (tsmb_size == 0) {
|
if (tsmb_size < m->size_var) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "tsmb_size is 0\n");
|
av_log(avctx, AV_LOG_ERROR, "tsmb_size invalid\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user