On Wed, Jan 25, 2023 at 12:42:53AM +0100, Michael Niedermayer wrote: > framebuf is only allocated when the new width/height are larger than the old > but nothing sets the old so its always allocated. > Use av_fast_mallocz() instead. > > Fixes: Timeout > Fixes: 55094/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-5116909932904448 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavcodec/g2meet.c | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) will apply patchset [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Awnsering whenever a program halts or runs forever is On a turing machine, in general impossible (turings halting problem). On any real computer, always possible as a real computer has a finite number of states N, and will either halt in less than N cycles or never halt.