On Fri, Jan 06, 2017 at 08:49:49PM +0100, Andreas Cadhalpun wrote: > Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> > --- > libavformat/xvag.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavformat/xvag.c b/libavformat/xvag.c > index 5ef4fb0900..1f28df7b89 100644 > --- a/libavformat/xvag.c > +++ b/libavformat/xvag.c > @@ -74,6 +74,7 @@ static int xvag_read_header(AVFormatContext *s) > switch (codec) { > case 0x1c: > st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; > + FF_RETURN_ON_OVERFLOW(s, st->codecpar->channels > INT_MAX / 16)
this check could also be added to "if (st->codecpar->channels <= 0)" above [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I am the wisest man alive, for I know one thing, and that is that I know nothing. -- Socrates
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel