]> granicus.if.org Git - libvpx/commit
vp8: Fix potential use-after-free in mfqe.
authorJerome Jiang <jianj@google.com>
Fri, 14 Dec 2018 22:39:58 +0000 (14:39 -0800)
committerJerome Jiang <jianj@google.com>
Wed, 26 Dec 2018 18:39:56 +0000 (10:39 -0800)
commitbe3c1ee28aeb699c508b02cfcccf7f13feaed3eb
treed542bb50ec2320a7fd837e36a403a9a5ad74f4d1
parent864949ddbc88bf9b3bf63793ed925c7222c99916
vp8: Fix potential use-after-free in mfqe.

Similar issue to 842265.

The pointer in vp8 postproc refers to show_frame_mi which is only
updated on show frame. However, when there is a no-show frame which also
changes the size (thus new frame buffers allocated), show_frame_mi is
not updated with new frame buffer memory.

Change the pointer in postproc to mi which is always updated.

BUG=913246

Change-Id: I5159ba7134a06db472c29a1d84b8d39bb60c7254
(cherry picked from commit 0e408ea67cd142a3f27189d7e00cbabea96a28d6)
vp8/common/mfqe.c