diff options
author | wm4 <wm4@nowhere> | 2015-09-07 12:43:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-07 13:17:45 +0200 |
commit | 373cb020aa96bf487d19ea3483db85fa22855ad0 (patch) | |
tree | 809e55b5e103dab6702d6edf67c3025cfde19558 /libass/ass_render_api.c | |
parent | 5eb0970a8d714cf69c5252dbfbf3df6e8d268f6a (diff) | |
download | libass-373cb020aa96bf487d19ea3483db85fa22855ad0.tar.bz2 libass-373cb020aa96bf487d19ea3483db85fa22855ad0.tar.xz |
ass_render: fix potential NULL deref
The logic here is pretty complicated. The caller of this function guards
it with "if(info->bm || info->bm_o){", and generally indeed only one of
them is set. But in some cases, both are needed. fix_outline()
definitely dereferences both. This is not necessarily guaranteed, e.g.
on out of memory errors. Add the missing checks.
Fixes CID 146125.
Diffstat (limited to 'libass/ass_render_api.c')
0 files changed, 0 insertions, 0 deletions