diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2015-06-07 21:42:42 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-06-07 21:42:42 +0200 |
commit | 30004491d2dc3ab84520333b1e13c82a99aa081f (patch) | |
tree | 51ddc31a0ceebd09185cf5acd6fc6f778cfa6c5d /libass | |
parent | e3a13c72f6f70f12a314a67da5540691a079d5b7 (diff) | |
download | libass-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.c | 2 |
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) { |