summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2015-06-07 21:42:42 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-06-07 21:42:42 +0200
commit30004491d2dc3ab84520333b1e13c82a99aa081f (patch)
tree51ddc31a0ceebd09185cf5acd6fc6f778cfa6c5d /libass
parente3a13c72f6f70f12a314a67da5540691a079d5b7 (diff)
downloadlibass-30004491d2dc3ab84520333b1e13c82a99aa081f.tar.bz2
libass-30004491d2dc3ab84520333b1e13c82a99aa081f.tar.xz
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.
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
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) {