Allocate a bit more memory for MPC SV8 seek table, so bitreader won't read
beyond allocated block. Originally committed as revision 19181 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
67fe508916
commit
8c1ff0abae
@ -97,7 +97,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
|
||||
av_log(s, AV_LOG_ERROR, "No seek table at given position\n");
|
||||
return;
|
||||
}
|
||||
if(!(buf = av_malloc(size)))
|
||||
if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE)))
|
||||
return;
|
||||
get_buffer(s->pb, buf, size);
|
||||
init_get_bits(&gb, buf, size * 8);
|
||||
|
Loading…
Reference in New Issue
Block a user