Re: bug#6214: 23.1; json-read-string crashes emacs with long string
authorChong Yidong <cyd@stupidchicken.com>
Tue, 18 May 2010 18:07:10 +0000 (14:07 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:04 +0000 (09:37 -0800)
17/c11bfba261424165c4ce9cabbefd9196723115 [new file with mode: 0644]

diff --git a/17/c11bfba261424165c4ce9cabbefd9196723115 b/17/c11bfba261424165c4ce9cabbefd9196723115
new file mode 100644 (file)
index 0000000..66621f7
--- /dev/null
@@ -0,0 +1,69 @@
+Return-Path: <cyd@stupidchicken.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2A5184196F2\r
+       for <notmuch@notmuchmail.org>; Tue, 18 May 2010 11:16:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.448\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.448 tagged_above=-999 required=5\r
+       tests=[BAYES_20=-0.001, RCVD_IN_BRBL_LASTEXT=1.449] autolearn=no\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 6NNWvOoOC3op for <notmuch@notmuchmail.org>;\r
+       Tue, 18 May 2010 11:16:25 -0700 (PDT)\r
+Received: from pantheon-po17.its.yale.edu (pantheon-po17.its.yale.edu\r
+       [130.132.50.73])\r
+       by olra.theworths.org (Postfix) with ESMTP id C40BF4196F3\r
+       for <notmuch@notmuchmail.org>; Tue, 18 May 2010 11:16:24 -0700 (PDT)\r
+Received: from furry (dhcp128036014213.central.yale.edu [128.36.14.213])\r
+       (authenticated bits=0)\r
+       by pantheon-po17.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id\r
+       o4II7AfM031273\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);\r
+       Tue, 18 May 2010 14:07:10 -0400\r
+Received: by furry (Postfix, from userid 1000)\r
+       id A7B5AC057; Tue, 18 May 2010 14:07:10 -0400 (EDT)\r
+From: Chong Yidong <cyd@stupidchicken.com>\r
+To: Carl Worth <cworth@cworth.org>\r
+Subject: Re: bug#6214: 23.1; json-read-string crashes emacs with long string\r
+References: <87pr0t5h1q.fsf@yoom.home.cworth.org>\r
+Date: Tue, 18 May 2010 14:07:10 -0400\r
+In-Reply-To: <87pr0t5h1q.fsf@yoom.home.cworth.org> (Carl Worth's message of\r
+       "Tue, 18 May 2010 09:08:17 -0700")\r
+Message-ID: <87fx1pkrsh.fsf@stupidchicken.com>\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed)\r
+X-Mailman-Approved-At: Mon, 24 May 2010 08:16:08 -0700\r
+Cc: Notmuch mailing list <notmuch@notmuchmail.org>, 6214-done@debbugs.gnu.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 18 May 2010 18:16:36 -0000\r
+\r
+Carl Worth <cworth@cworth.org> writes:\r
+\r
+> A user of the emacs-based mail client, Notmuch [*], found that\r
+> attempting to display a particular message would consistently\r
+> causes a segmentation fault in emacs.\r
+>\r
+> I haven't attempted to debug this within gdb yet, (I'll have to get my\r
+> hands on a build of emacs with debugging symbols first). But I wanted to\r
+> share things right away, so that perhaps someone else could do further\r
+> debugging and follow up.\r
+\r
+Looks like a stack overflow in the `string' function.  I've checked in a\r
+fix, thanks for the bug report.\r