mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
Merge commit 'd719981273bc779c7d1e879d88404fd867f93a0e'
* commit 'd719981273bc779c7d1e879d88404fd867f93a0e':
4xm: Check that the read track value is non-negative
Conflicts:
libavformat/4xm.c
See: 0838cfdc8a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
9411e9cafb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user