summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2015-06-12 21:14:53 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:43:16 +0200
commitaa01b5537785ce57a6359f50cb24f4552058a290 (patch)
tree864d6ef9b1b29ce2a515efe5d60b005cafa44d3f /test
parentdf7dd25b26755b6c2a3333cb40172f3642682add (diff)
downloadlibass-aa01b5537785ce57a6359f50cb24f4552058a290.tar.bz2
libass-aa01b5537785ce57a6359f50cb24f4552058a290.tar.xz
fontselect: fix undefined behavior with calloc
If allocations have the size zero, malloc/calloc implementations can return a zero-size buffer or NULL. The earlier introduced malloc checking blows up if an implementation returns NULL. Fix that by only allocating and checking when it's actually needed. Also fix a minor problem with iconv deinitialization in an error path.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions