On Thu, Jun 20, 2024 at 09:35:01PM +0200, Michael Niedermayer wrote: > This moves computations out of a loop > > Fixes: signed integer overflow: 31665934879948800 * 9998 cannot be represented in type 'long' > Fixes: 69024/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5949662967169024 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavcodec/j2kenc.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) will apply patchset [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB You can kill me, but you cannot change the truth.