ffmpeg_4: add patch for CVE-2023-51794

(cherry picked from commit 0aded32563)
This commit is contained in:
Robert Scott 2024-07-08 23:23:31 +01:00 committed by github-actions[bot]
parent 839c1c4c05
commit fb4cac9a31

View File

@ -420,6 +420,11 @@ stdenv.mkDerivation (finalAttrs: {
--replace 'const AVInputFormat *const ' 'const AVInputFormat *'
'';
})
(fetchpatch2 {
name = "CVE-2023-51794.patch";
url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/50f0f8c53c818f73fe2d752708e2fa9d2a2d8a07";
hash = "sha256-5G9lmKjMEa0+vqbA8EEiNIr6QG+PeEoIL+uZP4Hlo28=";
})
]
++ optionals (lib.versionAtLeast version "5" && lib.versionOlder version "6") [
(fetchpatch2 {