ivi-shell: bugfix, SEVG by adding NULL check in ivi_layout_get_screen_resolution
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
e2b8214efd
commit
0c217cb694
@@ -1535,7 +1535,7 @@ ivi_layout_get_screen_resolution(struct ivi_layout_screen *iviscrn,
|
||||
{
|
||||
struct weston_output *output = NULL;
|
||||
|
||||
if (pWidth == NULL || pHeight == NULL) {
|
||||
if (iviscrn == NULL || pWidth == NULL || pHeight == NULL) {
|
||||
weston_log("ivi_layout_get_screen_resolution: invalid argument\n");
|
||||
return IVI_FAILED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user