Commit 9411e9ca authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'd7199812'

* commit 'd7199812':
  4xm: Check that the read track value is non-negative

Conflicts:
	libavformat/4xm.c

See: 0838cfdcMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 233ab0f0 d7199812
......@@ -135,6 +135,7 @@ static int parse_strk(AVFormatContext *s,
av_log(s, AV_LOG_ERROR, "current_track too large\n");
return AVERROR_INVALIDDATA;
}
if (track + 1 > fourxm->track_count) {
if (av_reallocp_array(&fourxm->tracks, track + 1, sizeof(AudioTrack)))
return AVERROR(ENOMEM);
......
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