From 30205e29b202821d33e7ac082c99750fe200a959 Mon Sep 17 00:00:00 2001 From: happyworker <208suo@208suo.com> Date: Wed, 18 Sep 2024 15:27:53 +0800 Subject: [PATCH] fix CVE-2023-49501.patch (cherry picked from commit cf056d3f0a713a89a37b701d57712b707b015546) --- CVE-2023-49501.patch | 25 +++++++++++++++++++++++++ ffmpeg.spec | 7 +++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 CVE-2023-49501.patch diff --git a/CVE-2023-49501.patch b/CVE-2023-49501.patch new file mode 100644 index 0000000..72fef65 --- /dev/null +++ b/CVE-2023-49501.patch @@ -0,0 +1,25 @@ +From b45cc9297e567f76ccd39d9670eed521f2036d2c Mon Sep 17 00:00:00 2001 +From: happyworker <208suo@208suo.com> +Date: Wed, 18 Sep 2024 15:24:00 +0800 +Subject: [PATCH] createpatch + +--- + libavfilter/asrc_afirsrc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libavfilter/asrc_afirsrc.c b/libavfilter/asrc_afirsrc.c +index e2359c1..ea04c35 100644 +--- a/libavfilter/asrc_afirsrc.c ++++ b/libavfilter/asrc_afirsrc.c +@@ -480,7 +480,7 @@ static av_cold int config_eq_output(AVFilterLink *outlink) + if (ret < 0) + return ret; + +- s->magnitude = av_calloc(s->nb_magnitude, sizeof(*s->magnitude)); ++ s->magnitude = av_calloc(s->nb_magnitude + 1, sizeof(*s->magnitude)); + if (!s->magnitude) + return AVERROR(ENOMEM); + memcpy(s->magnitude, eq_presets[s->preset].gains, sizeof(*s->magnitude) * s->nb_magnitude); +-- +2.27.0 + diff --git a/ffmpeg.spec b/ffmpeg.spec index 640925e..f5aaf7f 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -62,7 +62,7 @@ Summary: Digital VCR and streaming server Name: ffmpeg%{?flavor} Version: 6.1.1 -Release: 13 +Release: 14 License: GPL-3.0-or-later URL: http://ffmpeg.org/ Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz @@ -77,7 +77,7 @@ Patch6: CVE-2023-49528.patch Patch7: fix-CVE-2023-49502.patch Patch8: fix-CVE-2024-32230.patch Patch9: CVE-2024-7055.patch - +Patch10: CVE-2023-49501.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} %{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel} @@ -407,6 +407,9 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir} %changelog +* Wed Sep 18 2024 happyworker <208suo@208suo.com> - 6.1.1-14 +- CVE-2023-49501.patch + * Tue Aug 27 2024 happyworker <208suo@208suo.com> - 6.1.1-13 - CVE-2024-7055.patch