Re: [FFmpeg-devel] [PATCH 8/9] xvag: prevent overflow during block alignment calculation
On 29.01.2017 09:51, Paul B Mahol wrote: > On 1/29/17, Michael Niedermayerwrote: >> On Thu, Jan 26, 2017 at 02:13:48AM +0100, Andreas Cadhalpun wrote: >>> Signed-off-by: Andreas Cadhalpun >>> --- >>> libavformat/xvag.c | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> LGTM assuming the author/maintainer does not object > > ok Pushed. Best regards, Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH 8/9] xvag: prevent overflow during block alignment calculation
On 1/29/17, Michael Niedermayerwrote: > On Thu, Jan 26, 2017 at 02:13:48AM +0100, Andreas Cadhalpun wrote: >> Signed-off-by: Andreas Cadhalpun >> --- >> libavformat/xvag.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) > > LGTM assuming the author/maintainer does not object ok ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH 8/9] xvag: prevent overflow during block alignment calculation
On Thu, Jan 26, 2017 at 02:13:48AM +0100, Andreas Cadhalpun wrote: > Signed-off-by: Andreas Cadhalpun> --- > libavformat/xvag.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) LGTM assuming the author/maintainer does not object [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The misfortune of the wise is better than the prosperity of the fool. -- Epicurus signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH 8/9] xvag: prevent overflow during block alignment calculation
Signed-off-by: Andreas Cadhalpun--- libavformat/xvag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/xvag.c b/libavformat/xvag.c index 5ef4fb0900..22e4f1e3c8 100644 --- a/libavformat/xvag.c +++ b/libavformat/xvag.c @@ -20,6 +20,7 @@ */ #include "libavutil/bswap.h" +#include "libavcodec/internal.h" #include "avformat.h" #include "internal.h" @@ -68,7 +69,7 @@ static int xvag_read_header(AVFormatContext *s) if (st->codecpar->sample_rate <= 0) return AVERROR_INVALIDDATA; -if (st->codecpar->channels <= 0) +if (st->codecpar->channels <= 0 || st->codecpar->channels > FF_SANE_NB_CHANNELS) return AVERROR_INVALIDDATA; switch (codec) { -- 2.11.0 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel