[FFmpeg-devel] [PATCH 1/9] avcodec/osq: Treat sum = 0 as k = 0

Michael Niedermayer michael at niedermayer.cc
Tue Sep 24 16:19:49 EEST 2024


On Fri, Sep 20, 2024 at 12:56:31AM +0200, Michael Niedermayer wrote:
> We have no valid sample that triggers this so we do not know if this would decode
> correctly, but -inf is not the correct k value
> 
> Fixes: Assertion n>=0 && n<=32 failed at libavcodec/get_bits.h:423
> Fixes: -inf is outside the range of representable values of type 'int'
> Fixes: 70709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-6223623839350784
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> ---
>  libavcodec/osq.c | 2 ++
>  1 file changed, 2 insertions(+)

will apply patchset

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

If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- 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/20240924/6cadaaaf/attachment.sig>


More information about the ffmpeg-devel mailing list