Blame SOURCES/0002-CVE-2019-9433-VP8-Fix-use-after-free-in-postproc.patch

5ee27c
From e8c72275a68e5c566bd780097286522a9cd7f906 Mon Sep 17 00:00:00 2001
5ee27c
From: Wim Taymans <wtaymans@redhat.com>
5ee27c
Date: Wed, 25 Mar 2020 12:30:32 +0100
5ee27c
Subject: [PATCH 2/2] CVE-2019-9433: VP8: Fix use-after-free in postproc.
5ee27c
5ee27c
The pointer in vp8 postproc refers to show_frame_mi which is only
5ee27c
updated on show frame. However, when there is a no-show frame which also
5ee27c
changes the size (thus new frame buffers allocated), show_frame_mi is
5ee27c
not updated with new frame buffer memory.
5ee27c
5ee27c
Change the pointer in postproc to mi which is always updated.
5ee27c
5ee27c
Bug: 842265
5ee27c
---
5ee27c
 vp8/common/postproc.c | 2 +-
5ee27c
 1 file changed, 1 insertion(+), 1 deletion(-)
5ee27c
5ee27c
diff --git a/vp8/common/postproc.c b/vp8/common/postproc.c
5ee27c
index dd998f16e..2693ef017 100644
5ee27c
--- a/vp8/common/postproc.c
5ee27c
+++ b/vp8/common/postproc.c
5ee27c
@@ -334,7 +334,7 @@ void vp8_deblock(VP8_COMMON                 *cm,
5ee27c
     double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065;
5ee27c
     int ppl = (int)(level + .5);
5ee27c
 
5ee27c
-    const MODE_INFO *mode_info_context = cm->show_frame_mi;
5ee27c
+    const MODE_INFO *mode_info_context = cm->mi;
5ee27c
     int mbr, mbc;
5ee27c
 
5ee27c
     /* The pixel thresholds are adjusted according to if or not the macroblock
5ee27c
-- 
5ee27c
2.25.1
5ee27c