From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18339: 24.4.50; Inserting '$' in TeX-mode cause Emacs crashed in MS-Windows with trunk. Date: Thu, 28 Aug 2014 19:31:26 +0300 Message-ID: <83wq9sinj5.fsf@gnu.org> References: <20140828.021809.1208842229714963583.chriszheng99@gmail.com> <8361hdk96f.fsf@gnu.org> <20140828.130721.194542882098872745.chriszheng99@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1409243548 17473 80.91.229.3 (28 Aug 2014 16:32:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2014 16:32:28 +0000 (UTC) Cc: 18339@debbugs.gnu.org To: Chris Zheng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 28 18:32:19 2014 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 1XN2cU-0004KM-EV for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2014 18:32:18 +0200 Original-Received: from localhost ([::1]:37982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN2cU-0008Bt-1j for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2014 12:32:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN2cL-00089P-TL for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2014 12:32:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN2cG-0003eF-0q for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2014 12:32:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN2cF-0003e5-TY for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2014 12:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XN2cD-0002KQ-UX for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2014 12:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Aug 2014 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18339 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18339-submit@debbugs.gnu.org id=B18339.14092434818899 (code B ref 18339); Thu, 28 Aug 2014 16:32:01 +0000 Original-Received: (at 18339) by debbugs.gnu.org; 28 Aug 2014 16:31:21 +0000 Original-Received: from localhost ([127.0.0.1]:54563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XN2bY-0002JS-TY for submit@debbugs.gnu.org; Thu, 28 Aug 2014 12:31:21 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:49765) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XN2bW-0002JD-7a for 18339@debbugs.gnu.org; Thu, 28 Aug 2014 12:31:19 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NB000B00YQO3200@mtaout26.012.net.il> for 18339@debbugs.gnu.org; Thu, 28 Aug 2014 19:29:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NB000849Z50ND40@mtaout26.012.net.il>; Thu, 28 Aug 2014 19:29:25 +0300 (IDT) In-reply-to: <20140828.130721.194542882098872745.chriszheng99@gmail.com> X-012-Sender: halo1@inter.net.il 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:92769 Archived-At: > Date: Thu, 28 Aug 2014 13:07:21 +0800 > From: Chris Zheng > > From: Eli Zaretskii > Subject: Re: bug#18339: 24.4.50; Inserting '$' in TeX-mode cause Emacs crashed in MS-Windows with trunk. > Date: Wed, 27 Aug 2014 22:46:16 +0300 > > > Thanks, I fixed this in trunk revision 117752. > > I confirmed that this bug is fixed in trunk. Thank you! Is this > change backport to 24.4 branch? I think the same problem is in > pretest of 24.4, too. I installed in the trunk because I couldn't reproduce the problem in the emacs-24 branch. But you are right: the same faulty code is on the branch, so I now backported the fix there (r117463). > Also I'm quite curious why the bug wasn't found for a long period of > time. The buggy code examines memory 1 byte before an allocated buffer, so the chance of that being outside the program's address space is evidently quite small. Memory management on Windows changed dramatically between emacs-24 branch and the trunk, so I guess this is the main reason that the bug was exposed.