Re: [PATCH] avoid segfault when calling sanitize_string() on NULL
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 10 May 2011 16:35:00 +0000 (09:35 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:13 +0000 (09:38 -0800)
23/b742046bb513fce77cb5615f56586249311d07 [new file with mode: 0644]

diff --git a/23/b742046bb513fce77cb5615f56586249311d07 b/23/b742046bb513fce77cb5615f56586249311d07
new file mode 100644 (file)
index 0000000..6fae140
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <jrollins@finestructure.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 C1597429E27\r
+       for <notmuch@notmuchmail.org>; Tue, 10 May 2011 09:35:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 LRotg7GeAkfV for <notmuch@notmuchmail.org>;\r
+       Tue, 10 May 2011 09:35:07 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6BE60429E26\r
+       for <notmuch@notmuchmail.org>; Tue, 10 May 2011 09:35:07 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id B0DF866E020A;\r
+       Tue, 10 May 2011 09:35:05 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com\r
+       [98.149.172.122]) (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id C47FD66E055A;\r
+       Tue, 10 May 2011 09:35:02 -0700 (PDT)\r
+Received: by servo.finestructure.net (Postfix, from userid 1000)\r
+       id 4A858CB1; Tue, 10 May 2011 09:35:03 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] avoid segfault when calling sanitize_string() on NULL\r
+In-Reply-To: <1305044732-13882-1-git-send-email-dkg@fifthhorseman.net>\r
+References: <1305044732-13882-1-git-send-email-dkg@fifthhorseman.net>\r
+User-Agent: Notmuch/0.6 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 10 May 2011 09:35:00 -0700\r
+Message-ID: <87ei46jyyz.fsf@servo.factory.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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, 10 May 2011 16:35:07 -0000\r
+\r
+--=-=-=\r
+\r
+Yikes!  Thanks for finding this, dkg.  I just pushed this to r-c/0.6.\r
+It looks like we need to expand the tests to test this corner case.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJNyWk1AAoJEO00zqvie6q8j/AQAJvraiSBjePLctgjzKcxxcB4\r
+VdRicR9uwBOLTlQ3BCtzrPGNPBIFHKylyrcpvq58SKaG/vRR1hDYozxE2eieKmBN\r
+yXiZVQpODnSJ13OKa8hsEv1iJlQB8H+CxrxAdfSGpOc9dZqA86SQAlbdY5EACLOJ\r
+OjKIsImTIHP6Zs2UQ6KmLVJzKTAY6oNXff+uVz/be7su0qXpMVLUiuLcnuKAm4WX\r
+vmCjWmWRq7rD12Y5dEdsti12rv3odvoSUKujV2japlPtdT+oLmMzN+MrsWziJum/\r
+5ga9WAzO+XpDgELJv2gtSc1pjfOQxHgdDXy8Xj28VZONa2F8RKAzz35+ax+EnlLE\r
+ELG9E5PLXpr7EmmQ8iV8hN5P3mj8gz/0kMZg40vqMgw/KxQyuGmOpriKWIXy4kZF\r
+bhb5J7QN9gOYzaHkV4CcgksMLjCw0KliN84+L9cbexKayUTUNXZa2XlZFg5VK6jF\r
+TBBGNps4te29jn9i5BqO+zp44TZVrJrTMB9XP4nJptdJaGJV5ybgFDBFEUpMB5q2\r
+ReG9J6YvAELl8TCG9Qe4pPZr1TKvsHJUye9KEIHAwPZC/GeIoEs5h8nVHDfPRS6Z\r
+ZgsuKmbr/55Z3Ugg+mF0CkLn3qmav3fC/ci6PIJ7h034P32wptIFO+Ml4kAdJVim\r
+oErvPCao2nCQwpIGGTNT\r
+=qkZg\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r