mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-25 00:06:58 +00:00
wtvdec: fix integer overflow
Fixes CID968583 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3fba3e79a3
commit
3317414fc1
@ -200,7 +200,7 @@ static AVIOContext * wtvfile_open_sector(int first_sector, uint64_t length, int
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > avio_tell(s->pb))
|
if ((int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > avio_tell(s->pb))
|
||||||
av_log(s, AV_LOG_WARNING, "truncated file\n");
|
av_log(s, AV_LOG_WARNING, "truncated file\n");
|
||||||
|
|
||||||
/* check length */
|
/* check length */
|
||||||
|
Loading…
Reference in New Issue
Block a user