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: Jan Djärv
Subject: bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377")
Date: Wed, 9 Oct 2013 19:06:40 +0200

Hello.

9 okt 2013 kl. 18:57 skrev Andreas Schwab <schwab@linux-m68k.org>:

> Jan Djärv <jan.h.d@swipnet.se> writes:
> 
>> 9 okt 2013 kl. 13:37 skrev Carsten Bormann <cabo@tzi.org>:
>> 
>>> (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.

So it should throw an error?  I'm ok with that, but I suspect it doesn't help 
tramp.

        Jan D.






reply via email to

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