diff options
author | Grigori Goronzy <greg@blackbox> | 2011-07-28 23:58:12 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2011-07-28 23:58:12 +0200 |
commit | 2aff07ec62f1f2ef8462bb2954907ecca71288fa (patch) | |
tree | 2050200de4eb12993921de9ee82d79e4af36125b | |
parent | 27cc03363cfbddb9877cd547327d56405653add7 (diff) | |
download | libass-2aff07ec62f1f2ef8462bb2954907ecca71288fa.tar.bz2 libass-2aff07ec62f1f2ef8462bb2954907ecca71288fa.tar.xz |
Fix crash in ass_set_style_overrides
Set pointer to the style overrides to NULL to make sure a freed buffer
will not be accessed anymore later. Reported by uau.
-rw-r--r-- | libass/ass_library.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_library.c b/libass/ass_library.c index 5bca644..b33ca55 100644 --- a/libass/ass_library.c +++ b/libass/ass_library.c @@ -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; |