[FFmpeg-devel] [PATCH 1/2] avcodec/cfhd: Avoid signed integer overflow in coeff

Michael Niedermayer michael at niedermayer.cc
Tue Feb 1 17:43:33 EET 2022


On Mon, Jan 17, 2022 at 11:32:44PM +0100, Michael Niedermayer wrote:
> Fixes: signed integer overflow: 15244032 * 256 cannot be represented in type 'int'
> Fixes: 43504/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-4865014842916864
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/cfhd.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

will apply patchset

thx

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

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- 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/20220201/69b0aea3/attachment.sig>


More information about the ffmpeg-devel mailing list