From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs 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 Message-ID: <09C9BE65-1DB9-48C7-A212-DB9D64347125@swipnet.se> References: <1FC6FC8B-68B0-4D93-8B5C-5665B843B2D0@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381344734 1809 80.91.229.3 (9 Oct 2013 18:52:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 18:52:14 +0000 (UTC) Cc: 15570-done@debbugs.gnu.org To: Carsten Bormann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 09 20:52:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VTyrp-0004K3-55 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 20:52:17 +0200 Original-Received: from localhost ([::1]:43384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTyro-0004yy-Qn for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 14:52:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTyrg-0004xk-Io for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 14:52:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTyrb-0008FZ-BL for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 14:52:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTyrb-0008FS-8j for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 14:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VTyrb-00050M-40 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 14:52:03 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2013 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15570 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15570@debbugs.gnu.org, jan.h.d@swipnet.se, cabo@tzi.org Original-Received: via spool by 15570-done@debbugs.gnu.org id=D15570.138134466619076 (code D ref 15570); Wed, 09 Oct 2013 18:52:02 +0000 Original-Received: (at 15570-done) by debbugs.gnu.org; 9 Oct 2013 18:51:06 +0000 Original-Received: from localhost ([127.0.0.1]:38377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VTyqe-0004xW-PL for submit@debbugs.gnu.org; Wed, 09 Oct 2013 14:51:05 -0400 Original-Received: from mail01.bdtv.se ([176.10.222.34]:52363) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VTyqb-0004wM-5x for 15570-done@debbugs.gnu.org; Wed, 09 Oct 2013 14:51:02 -0400 Original-Received: (qmail 28304 invoked by uid 89); 9 Oct 2013 18:50:58 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 9 Oct 2013 18:50:58 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id C23ED1A01EC; Wed, 9 Oct 2013 18:50:58 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1510) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79115 Archived-At: Hello. We now throw an error. Jan D. 9 okt 2013 kl. 20:33 skrev Carsten Bormann : > On Oct 9, 2013, at 18:31, Jan Dj=E4rv wrote: >=20 >> 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? >=20 > I haven't looked at the details yet (that will be easier once the null = pointer reference is fixed). >=20 > That needn't stop me from hypothesizing... >=20 > 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. >=20 > 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.) >=20 > I'm a bit surprised that this bug apparently was around for a number = of years already... >=20 > Gr=FC=DFe, Carsten