From: Grigori Goronzy Date: Sun, 7 Jun 2015 19:42:42 +0000 (+0200) Subject: Check possible NULL dereference X-Git-Tag: 0.12.3~8^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30004491d2dc3ab84520333b1e13c82a99aa081f;p=libass Check possible NULL dereference Reported by clang scan-build static analysis. This cannot happen with the current code, but the check might make this more robust in case anything changes. --- diff --git a/libass/ass_render.c b/libass/ass_render.c index c49dd5c..c416cb8 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2275,7 +2275,7 @@ static void render_and_combine_glyphs(ASS_Renderer *render_priv, } last_info = info; - if (!info->image) + if (!info->image || !current_info) continue; if (current_info->bitmap_count >= current_info->max_bitmap_count) {