From: Andreas Schwab <schwab@linux-m68k.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 15570@debbugs.gnu.org, Carsten Bormann <cabo@tzi.org>
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 [thread overview]
Message-ID: <87d2nextyo.fsf@igel.home> (raw)
In-Reply-To: <1FC6FC8B-68B0-4D93-8B5C-5665B843B2D0@swipnet.se> ("Jan Djärv"'s message of "Wed, 9 Oct 2013 18:31:24 +0200")
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.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2013-10-09 16:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-09 11:37 bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377") Carsten Bormann
2013-10-09 16:31 ` Jan Djärv
2013-10-09 16:57 ` Andreas Schwab [this message]
2013-10-09 17:06 ` Jan Djärv
2013-10-09 18:20 ` Stefan Monnier
2013-10-09 18:33 ` Carsten Bormann
2013-10-09 18:50 ` Jan Djärv
2013-10-09 21:03 ` Carsten Bormann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2nextyo.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=15570@debbugs.gnu.org \
--cc=cabo@tzi.org \
--cc=jan.h.d@swipnet.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).