coretext: silently fail on invalid UTF8 instead of crashing
authorKristian Rietveld <kris@lanedo.com>
Mon, 27 Aug 2012 07:37:11 +0000 (09:37 +0200)
committerKristian Rietveld <kris@lanedo.com>
Mon, 27 Aug 2012 07:37:11 +0000 (09:37 +0200)
commitfa4cd1a232529898a616e86ab89965d5ffc52347
tree6ae87afa6f9022fc119f4373a13ee44b4587b4bd
parentd11ed972b60e56a96e8b63b34168911260706d54
coretext: silently fail on invalid UTF8 instead of crashing

When an attempt is made to create a CFString with a C string containing
invalid UTF8, the call returns NULL. We now check this return value
and silently fail instead of continuing and reading from a NULL
pointer.
modules/basic/basic-coretext.c