Re: [PATCH] crypto: return NULL cryptoctx if protocol string is empty.

Subject: Re: [PATCH] crypto: return NULL cryptoctx if protocol string is empty.

Date: Fri, 19 Jul 2013 08:57:52 -0700

To: Notmuch Mail

Cc:

From: Jameson Graef Rollins


On Fri, Jul 19 2013, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
> Badly formed messages that don't specify a protocol in
> signed/encrypted parts, end up with a protocol of NULL.  strcasecmp in
> notmuch_crypto_get_context then segfaults when trying to check it
> against known protocols.  If the protocol is NULL, just return an
> empty context immediately (with appropriate message.)

Fixes bug reported in id:87mwpiu4vi.fsf@zancas.localnet

jamie.
part-000.sig (application/pgp-signature)

Thread: