CVE-2024-35368: Ffmpeg Hw Frames Ctx Double Free On Goto Failcve-2024-35368-ffmpeg-hw-frames-ctx-double-free-on-goto-fail
Potential double-free (CWE-415): $F->buf[0] was previously assigned via av_buffer_create(...) with a custom release callback that owns resources such as the MppFrame / AVDRMFrameDescriptor / decoder ref. The subsequent assignment $F->hw_frames_ctx = av_buffer_ref(...) checks for NULL and on failure jumps to a manual cleanup label via 'goto'. The manual clean