]> granicus.if.org Git - libass/commitdiff
ass_render: fix potential NULL deref
authorwm4 <wm4@nowhere>
Mon, 7 Sep 2015 11:36:23 +0000 (13:36 +0200)
committerwm4 <wm4@nowhere>
Mon, 7 Sep 2015 11:55:48 +0000 (13:55 +0200)
Fixes CID 146421.

libass/ass_render.c

index 88ab7348bd1436a46c6d4419e84db1b354eb5d0c..e7a306000f4beae94e0423a847c7ecccaccb3616 100644 (file)
@@ -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)