summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-07 13:36:23 +0200
committerwm4 <wm4@nowhere>2015-09-07 13:55:48 +0200
commit6bfcc29f458e597a323f26f30417e057a917cbe6 (patch)
treea764297d1079be8c4069976106aa6f4a48061147 /libass
parentb27dd7d1f79caa097da120f2f616e7c6d469612f (diff)
downloadlibass-6bfcc29f458e597a323f26f30417e057a917cbe6.tar.bz2
libass-6bfcc29f458e597a323f26f30417e057a917cbe6.tar.xz
ass_render: fix potential NULL deref
Fixes CID 146421.
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 88ab734..e7a3060 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -1803,7 +1803,7 @@ static void make_shadow_bitmap(CombinedBitmapInfo *info, ASS_Renderer *render_pr
} else if (info->bm_o) {
info->bm_s = info->bm_o;
info->bm_o = 0;
- } else
+ } else if (info->bm)
info->bm_s = copy_bitmap(render_priv->engine, info->bm);
if (!info->bm_s)