Commit 093645c
renderer-backend-egl.c: check interface pointer before usage
The interface is used without checking for a valid address. In some
cases it may lead to NULL dereference and segmentation fault.
This was the case with the wpebackend-fdo which was returning nullptr
when requesting for the _wpe_renderer_backend_egl_offscreen_target_interface.
Igalia/meta-webkit#31 (comment)
Signed-off-by: Maciej Pijanowski <[email protected]>1 parent 4be4c7d commit 093645c
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
143 | 152 | | |
144 | 153 | | |
145 | 154 | | |
| |||
0 commit comments