Commit c57dc62
committed
va: reject NULL display in vaGetDisplayWl()
Add a null-pointer check for the display parameter at the entry of vaGetDisplayWl(), returning NULL
immediately instead of proceeding to backend initialization which would crash with a null
dereference.
This aligns the Wayland constructor with the X11 and DRM constructors which already validate their
native display/fd arguments early.
Signed-off-by: Carl.Zhang <carl.zhang@intel.com>1 parent ad64eb9 commit c57dc62
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
0 commit comments