[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\
bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377")
Wed, 9 Oct 2013 19:06:40 +0200
9 okt 2013 kl. 18:57 skrev Andreas Schwab <address@hidden>:
> Jan Djärv <address@hidden> writes:
>> 9 okt 2013 kl. 13:37 skrev Carsten Bormann <address@hidden>:
>>> (ns-convert-utf8-nfd-to-nfc "\377")
>>> crashes in strlen (called from build_string),
>>> as it is run on a null-pointer (apparently returned from [utfStr
>>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>>> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
>> Eh, don't do that?
> Lisp-level functions should always validate their arguments.
So it should throw an error? I'm ok with that, but I suspect it doesn't help