Commit ad9a877a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '459f2b39'

* commit '459f2b39':
  mpc8: Check the seek table size parsed from the bitstream

Conflicts:
	libavformat/mpc8.c

See: b61ba262Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d6e650d8 459f2b39
...@@ -151,7 +151,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off) ...@@ -151,7 +151,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
return; return;
} }
if (size > INT_MAX/10 || size<=0) { if (size > INT_MAX/10 || size<=0) {
av_log(s, AV_LOG_ERROR, "Seek table size is invalid\n"); av_log(s, AV_LOG_ERROR, "Bad seek table size\n");
return; return;
} }
if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE))) if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment