mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
ffmpeg: fix-CVE-2020-20446
avcodec/aacpsy: Avoid floating point division by 0 of norm_fac Fixes: Ticket7995 Fixes: CVE-2020-20446 (From OE-Core rev: d3806b2add3060649c2d488fb9208a106573d523) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> CVE: CVE-2020-20446 Upstream-Status: Backport [223b5e8ac9f6461bb13ed365419ec485c5b2b002] Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c31188d721
commit
7de4c20e62
@@ -0,0 +1,35 @@
|
||||
From 223b5e8ac9f6461bb13ed365419ec485c5b2b002 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Niedermayer <michael@niedermayer.cc>
|
||||
Date: Fri, 28 May 2021 20:18:25 +0200
|
||||
Subject: [PATCH] avcodec/aacpsy: Avoid floating point division by 0 of
|
||||
norm_fac
|
||||
|
||||
Fixes: Ticket7995
|
||||
Fixes: CVE-2020-20446
|
||||
|
||||
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
|
||||
|
||||
CVE: CVE-2020-20446
|
||||
Upstream-Status: Backport [223b5e8ac9f6461bb13ed365419ec485c5b2b002]
|
||||
|
||||
Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
|
||||
---
|
||||
libavcodec/aacpsy.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c
|
||||
index 482113d427..e51d29750b 100644
|
||||
--- a/libavcodec/aacpsy.c
|
||||
+++ b/libavcodec/aacpsy.c
|
||||
@@ -794,7 +794,7 @@ static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
|
||||
|
||||
if (pe < 1.15f * desired_pe) {
|
||||
/* 6.6.1.3.6 "Final threshold modification by linearization" */
|
||||
- norm_fac = 1.0f / norm_fac;
|
||||
+ norm_fac = norm_fac ? 1.0f / norm_fac : 0;
|
||||
for (w = 0; w < wi->num_windows*16; w += 16) {
|
||||
for (g = 0; g < num_bands; g++) {
|
||||
AacPsyBand *band = &pch->band[w+g];
|
||||
--
|
||||
2.32.0
|
||||
|
||||
@@ -25,6 +25,7 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
|
||||
SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
|
||||
file://0001-libavutil-include-assembly-with-full-path-from-sourc.patch \
|
||||
file://fix-CVE-2020-20446.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "06b10a183ce5371f915c6bb15b7b1fffbe046e8275099c96affc29e17645d909"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user