From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: Re: bug#1380: 23.0.60; file content causes CVS emacs to crash Date: Wed, 26 Nov 2008 09:32:39 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8663majyeg.fsf@lifelogs.com> References: <87myfuhmrk.fsf@cyd.mit.edu> <86wsewvs48.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227714028 6101 80.91.229.12 (26 Nov 2008 15:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2008 15:40:28 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 16:41:31 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L5MW2-0001b1-Fx for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 16:41:22 +0100 Original-Received: from localhost ([127.0.0.1]:43555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5MUs-0005f9-Ne for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 10:40:10 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!xs4all!news2.euro.net!newsfeed.freenet.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 29 Original-X-Trace: news.albasani.net 2R/h9Tf+UrVNKTSfIJJBOlDhMcQRHdTmeKelN8VLf946qiOZ2H5wBd1Hs2HInsCBZ777UjRSEPqBnsp2LkisW3SiUnDEUYOaFzyR7DXmEmYoYTQLQXh37cHge1OEvjrL Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Wed, 26 Nov 2008 15:33:36 +0000 (UTC) X-User-ID: /a1hlxsRP/qr7DTg4t9TYSrJq2mn7syFf2axXkwKHsE= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:WYXCKqwQCSqA5Uhq55BhXOO+hSo= sha1:FTJxZ4dXUo2kZDgw6TD3s79ITyA= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: mbQS5wBDPM4MlX+i8CctiRsMR19Yevf5oevKzmwJYzE= Original-Xref: news.stanford.edu gnu.emacs.bug:50237 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22698 Archived-At: On Fri, 21 Nov 2008 12:41:43 -0600 Ted Zlatanov wrote: TZ> On Fri, 21 Nov 2008 11:25:07 +0900 Kenichi Handa wrote: KH> In article <87myfuhmrk.fsf@cyd.mit.edu>, Chong Yidong writes: >>> > The file content in a file causes Emacs to crash as soon as it's >>> > opened. Tested with "emacs -q file". >>> Looks like the charbuf in the coding structure is overflowing. The >>> following rough patch prevents this overflow and the crash, but maybe >>> there is a deeper bug. The comments in coding.c:6610 says "We are sure >>> that the number of data is less than the size of coding->charbuf." This >>> bug comes about due to that faile assumption. >>> Handa-san, what do you think? KH> I found that it's a bug in detect/decode_coding_iso_2022, KH> and just installed a fix. TZ> Fix confirmed here. When I tried to commit the file discussed in the original bug report to a CVS repository, Emacs crashed with a segfault. The file was committed, so this happened after the cvs executable was called. I didn't do a thorough debugging session because this is very likely to be a proliferation of the same bug, but if you can't duplicate it I will produce a backtrace, etc. Thanks Ted