Commit 0226b95
vp8_de_alloc_frame_buffers: clear mi/postproc_state
This avoids leaving the decoder in an inconsistent state, which can lead
to a use-after-free (UAF) through `VP8_COMMON::mi`,
`VP8_COMMON::frame_to_show`, and `VP8_COMMON::postproc_state` with
`VP8_MFQE` enabled when decoding proceeds after an earlier allocation
failure.
Bug: 500638476
Change-Id: I0adb05c63db897093df2aa283b51888543a107ea1 parent e914ae9 commit 0226b95
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
0 commit comments