unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Andreas Schwab <schwab@linux-m68k.org>
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, 9 Oct 2013 19:06:40 +0200	[thread overview]
Message-ID: <200F4746-285D-45E3-97FB-9E9AECB204C7@swipnet.se> (raw)
In-Reply-To: <87d2nextyo.fsf@igel.home>

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	other threads:[~2013-10-09 17:06 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
2013-10-09 17:06     ` Jan Djärv [this message]
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=200F4746-285D-45E3-97FB-9E9AECB204C7@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=15570@debbugs.gnu.org \
    --cc=cabo@tzi.org \
    --cc=schwab@linux-m68k.org \
    /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).