[FFmpeg-devel] [PATCH] avcodec/g729_parser: Check channels

Michael Niedermayer michael at niedermayer.cc
Tue Mar 8 01:30:48 EET 2022


On Sun, Feb 27, 2022 at 03:02:46PM +0100, Paul B Mahol wrote:
> On Sun, Feb 27, 2022 at 2:51 PM Michael Niedermayer <michael at niedermayer.cc>
> wrote:
> 
> > Fixes: signed integer overflow: 10 * 808464428 cannot be represented in
> > type 'int'
> > Fixes: assertion failure
> > Fixes: ticket9651
> >
> 
> 
> LGTM

will apply


> 
> Is it possible for parser get 0 channels as input, so it could
> theoretically loop forever?

there is a check for block_size == 0 a few lines later

thx

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

Democracy is the form of government in which you can choose your dictator
-------------- 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/20220308/2d0131f6/attachment.sig>


More information about the ffmpeg-devel mailing list