bug-gnu-emacs
[Top][All Lists]
Advanced

[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 "\


From: Andreas Schwab
Subject: bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377")
Date: Wed, 09 Oct 2013 18:57:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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 
>> UTF8String]).
>> 
>> 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.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]