[FFmpeg-devel] [PATCH 2/5] avutil/timecode: Avoid undefined behavior with large framenum

Michael Niedermayer michael at niedermayer.cc
Tue Jan 19 01:03:54 EET 2021


On Sun, Nov 29, 2020 at 01:03:34AM +0100, Michael Niedermayer wrote:
> Fixes: signed integer overflow: 2147462079 + 2149596 cannot be represented in type 'int'
> Fixes: 27565/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5091972813160448
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavutil/timecode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

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

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- 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/20210119/21e402d3/attachment.sig>


More information about the ffmpeg-devel mailing list