[FFmpeg-devel] [PATCH 2/2] avcodec/utils: Require a non zero channels unless AV_CODEC_CAP_CHANNEL_CONF is set

Michael Niedermayer michael at niedermayer.cc
Fri Nov 27 23:29:47 EET 2020


On Fri, Sep 11, 2020 at 03:42:45PM +0200, Paul B Mahol wrote:
> On Thu, Sep 10, 2020 at 02:02:20PM +0200, Michael Niedermayer wrote:
> > This avoids per codec checks for channels not being 0
> > 
> > Fixes: division by 0
> > Fixes: 25419/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FASTAUDIO_fuzzer-5632544761184256
> > Fixes: 25433/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FASTAUDIO_fuzzer-6215671900536832
> > 
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > Suggested-by: Paul B Mahol <onemda at gmail.com>
> > See: [FFmpeg-devel] [PATCH 1/3] avcodec/fastaudio: Check channel
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavcodec/utils.c | 9 +++++++++
> >  1 file changed, 9 insertions(+)
> 
> LGTM

will apply in case i spot no test failure

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Elect your leaders based on what they did after the last election, not
based on what they say before an election.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201127/5733664e/attachment.sig>


More information about the ffmpeg-devel mailing list