]> granicus.if.org Git - libass/commitdiff
Fix crash in ass_set_style_overrides
authorGrigori Goronzy <greg@blackbox>
Thu, 28 Jul 2011 21:58:12 +0000 (23:58 +0200)
committerGrigori Goronzy <greg@blackbox>
Thu, 28 Jul 2011 21:58:12 +0000 (23:58 +0200)
Set pointer to the style overrides to NULL to make sure a freed buffer
will not be accessed anymore later. Reported by uau.

libass/ass_library.c

index 5bca64485adfce6314685b3c601852d789d1ccd7..b33ca551b0a33a9eabfa8383cda3c648e51f089f 100644 (file)
@@ -78,6 +78,7 @@ void ass_set_style_overrides(ASS_Library *priv, char **list)
             free(*p);
     }
     free(priv->style_overrides);
+    priv->style_overrides = NULL;
 
     if (!list)
         return;