From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Carsten Bormann <cabo@tzi.org>
Cc: 15570-done@debbugs.gnu.org
Subject: bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377")
Date: Wed, 9 Oct 2013 20:50:58 +0200 [thread overview]
Message-ID: <09C9BE65-1DB9-48C7-A212-DB9D64347125@swipnet.se> (raw)
In-Reply-To: <D0D9A5EC-9E8E-46EE-BDFE-7323F8F60857@tzi.org>
Hello.
We now throw an error.
Jan D.
9 okt 2013 kl. 20:33 skrev Carsten Bormann <cabo@tzi.org>:
> On Oct 9, 2013, at 18:31, Jan Djärv <jan.h.d@swipnet.se> wrote:
>
>> The function clearly expects valid UTF-8 as input. Why is tramp feeding it invalid UTF-8? What is tramp trying to accomplish? What would be the expected return value on invalid UTF-8?
>
> I haven't looked at the details yet (that will be easier once the null pointer reference is fixed).
>
> That needn't stop me from hypothesizing...
>
> ns-convert-utf8-nfd-to-nfc is used in places where system output might contain Apple's slightly crazy not-quite-NFD file names, so that you can usefully cut and paste them etc. to places that expect the usual not-quite-NFC. So one should expect a lot of not-really-UTF-8-after-all input to be fed into this thing.
> I'm presuming tramp just feeds whatever it got from the remote system through this to get more useful output e.g. for a directory listing.
>
> It probably would be useful to have a robust version of this that just chokes on nothing.
> Raising an error on non-UTF-8 input may be a desirable behavior in other places.
> (Crashing Emacs never is.)
>
> I'm a bit surprised that this bug apparently was around for a number of years already...
>
> Grüße, Carsten
next prev parent reply other threads:[~2013-10-09 18:50 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
2013-10-09 18:20 ` Stefan Monnier
2013-10-09 18:33 ` Carsten Bormann
2013-10-09 18:50 ` Jan Djärv [this message]
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=09C9BE65-1DB9-48C7-A212-DB9D64347125@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=15570-done@debbugs.gnu.org \
--cc=cabo@tzi.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).