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: Fri, 21 Nov 2008 12:41:43 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86wsewvs48.fsf@lifelogs.com> References: <87myfuhmrk.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227296422 31881 80.91.229.12 (21 Nov 2008 19:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2008 19:40:22 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 21 20:41:26 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 1L3bsW-0003um-UY for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 20:41:21 +0100 Original-Received: from localhost ([127.0.0.1]:41987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3brN-0001aW-Rh for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 14:40:09 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 21 Original-X-Trace: news.albasani.net BjeYNwcmPKLp51kJZN/p3cCpB0d13U4XlvG5eGAd9hm7GJbAQ9lEY9q/iQ2uUw9C2OqiShunZr8qFOp/Fm7HrQhW22Xh8MMPNJSBcpz/s9nclNm1smArxxJgJuo1G7Uv Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Fri, 21 Nov 2008 18:41:43 +0000 (UTC) X-User-ID: AdrrbLh4DRL3I5sNCbfxQbZx3pMvN3XiCjfjP1sAwlk= 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:SYc7iNWMQNl4xPCXkt9pIWX7E2M= sha1:2SMrbT90Bb4IhMTd5DWKhSu0hBk= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: HX10hbU4EOGhpMtvxfuwljQ+aT9ME2Nsu1t1hGldwv8= Original-Xref: news.stanford.edu gnu.emacs.bug:50092 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:22562 Archived-At: 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. Fix confirmed here. Thanks Ted