mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/xmv: Check this_packet_size
Fixes: CID1604489 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 696685df0ccf437083d15f40358a6ec86f5748ac) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2248217d42
commit
1ad6cf075d
@ -220,6 +220,8 @@ static int xmv_read_header(AVFormatContext *s)
|
||||
/* Initialize the packet context */
|
||||
|
||||
xmv->next_packet_offset = avio_tell(pb);
|
||||
if (this_packet_size < xmv->next_packet_offset)
|
||||
return AVERROR_INVALIDDATA;
|
||||
xmv->next_packet_size = this_packet_size - xmv->next_packet_offset;
|
||||
xmv->stream_count = xmv->audio_track_count + 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user