diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2015-06-12 21:14:53 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:43:16 +0200 |
commit | aa01b5537785ce57a6359f50cb24f4552058a290 (patch) | |
tree | 864d6ef9b1b29ce2a515efe5d60b005cafa44d3f /test | |
parent | df7dd25b26755b6c2a3333cb40172f3642682add (diff) | |
download | libass-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