Skip to content
Snippets Groups Projects
Commit ad9a877a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '459f2b39'


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

Conflicts:
	libavformat/mpc8.c

See: b61ba262
Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents d6e650d8 459f2b39
No related branches found
No related tags found
No related merge requests found
...@@ -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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment