From 30004491d2dc3ab84520333b1e13c82a99aa081f Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sun, 7 Jun 2015 21:42:42 +0200 Subject: 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. --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/ass_render.c') 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) { -- cgit v1.2.3