[FFmpeg-devel] [PATCH 1/3] avformat/kvag: Check sample_rate

Michael Niedermayer michael at niedermayer.cc
Wed May 1 00:12:55 EEST 2024


On Tue, Apr 30, 2024 at 02:48:52AM +0200, Michael Niedermayer wrote:
> Fixes: Division by 0
> Fixes: -copyts -start_at_zero -itsoffset 00:00:01 -itsscale 1 -ss 00:00:02  -i zgclab/ffmpeg_crash/poc1 output.mp4
> 
> Found-by: Wang Dawei and Zhou Geng, from Zhongguancun Laboratory
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavformat/kvag.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

I will apply this one
sample rate is signed everywhere
so accepting things outside the signed int range is not
going to work


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

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- 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/20240430/dba7937d/attachment.sig>


More information about the ffmpeg-devel mailing list