summaryrefslogtreecommitdiffstats
path: root/libass/ass_render_api.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-07 12:43:40 +0200
committerwm4 <wm4@nowhere>2015-09-07 13:17:45 +0200
commit373cb020aa96bf487d19ea3483db85fa22855ad0 (patch)
tree809e55b5e103dab6702d6edf67c3025cfde19558 /libass/ass_render_api.c
parent5eb0970a8d714cf69c5252dbfbf3df6e8d268f6a (diff)
downloadlibass-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