segmentation fault caused by empty application/pgp-signature part
authorDavid Bremner <david@tethera.net>
Fri, 19 Jul 2013 12:10:57 +0000 (09:10 +2100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:02 +0000 (09:56 -0800)
06/f445165d6a2012b24951b181e0d48ae353acc0 [new file with mode: 0644]

diff --git a/06/f445165d6a2012b24951b181e0d48ae353acc0 b/06/f445165d6a2012b24951b181e0d48ae353acc0
new file mode 100644 (file)
index 0000000..f8c3b33
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <david@tethera.net>\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 68C8C431FBD\r
+       for <notmuch@notmuchmail.org>; Fri, 19 Jul 2013 05:11:11 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.001\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
+       tests=[MISSING_MIME_HB_SEP=0.001] autolearn=disabled\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 K+gBMkHys9OU for <notmuch@notmuchmail.org>;\r
+       Fri, 19 Jul 2013 05:11:05 -0700 (PDT)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 457C9431FAF\r
+       for <notmuch@notmuchmail.org>; Fri, 19 Jul 2013 05:11:05 -0700 (PDT)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+       (envelope-from <david@tethera.net>)\r
+       id 1V09WX-0005eq-5V; Fri, 19 Jul 2013 09:11:01 -0300\r
+Received: (nullmailer pid 32504 invoked by uid 1000); Fri, 19 Jul 2013\r
+       12:10:57 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch mailing list <notmuch@notmuchmail.org>\r
+Subject: segmentation fault caused by empty application/pgp-signature part\r
+User-Agent: Notmuch/0.15.2+217~gb60fb33 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 19 Jul 2013 09:10:57 -0300\r
+Message-ID: <87mwpiu4vi.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/mixed; boundary="==-=-="\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: Fri, 19 Jul 2013 12:11:11 -0000\r
+\r
+--==-=-=\r
+Content-Type: text/plain\r
+\r
+\r
+The attached message is edited from one I managed to convince notmuch-emacs to\r
+send via some mishap with gpg-agent. It has an empty signature\r
+part. Clearly this is wrong, but on the other hand, it should not cause\r
+notmuch show --decrypt to segmentation fault. As for the actual creation\r
+of the message, I suppose that's more likely a bug in emacs, if\r
+anything.\r
+\r
+\r
+--==-=-=\r
+Content-Type: message/rfc822\r
+Content-Disposition: attachment; filename=pgp-fail.eml\r
+\r
+Delivery-date: Fri, 05 Jul 2013 15:11:10 -0300\r
+From: David Bremner <bremner@debian.org>\r
+To: blah blah <blah@blah.com>\r
+Subject: blah\r
+Date: Fri, 05 Jul 2013 15:10:32 -0300\r
+Message-ID: <empty-pgp-sig>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+X-Spam-Score: -0.0\r
+X-Spam_bar: /\r
+\r
+protocol="application/pgp-signature"\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+blah\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+\r
+--=-=-=--\r
+\r
+--==-=-=--\r