From: Marek Olšák Date: Sat, 17 Oct 2015 17:05:46 +0000 (+0200) Subject: gallium/hud: fix possible NULL pointer dereference X-Git-Tag: upstream/17.1.0~15292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=006fcc0da674ca18ebf07771e3c309997ab32798;p=platform%2Fupstream%2Fmesa.git gallium/hud: fix possible NULL pointer dereference Trivial. --- diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 95eed26..ffe30b8 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -987,6 +987,9 @@ hud_parse_env_var(struct hud_context *hud, const char *env) case ',': env++; + if (!pane) + break; + y += height + hud->font.glyph_height * (pane->num_graphs + 2); height = 100;