mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avformat/mpc8: fix memleak when seek table too big
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
22eae2d0c9
commit
7a20008964
@ -168,6 +168,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
|
||||
size = gb_get_v(&gb);
|
||||
if(size > UINT_MAX/4 || size > c->samples/1152){
|
||||
av_log(s, AV_LOG_ERROR, "Seek table is too big\n");
|
||||
av_free(buf);
|
||||
return;
|
||||
}
|
||||
seekd = get_bits(&gb, 4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user