Re: [PATCH 2/2] lib: fix error handling

Subject: Re: [PATCH 2/2] lib: fix error handling

Date: Sat, 18 Jan 2014 20:09:21 -0400

To: Tomi Valkeinen, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Valkeinen <tomi.valkeinen@iki.fi> writes:

> Currently if a Xapian exception happens in notmuch_message_get_header,
> the exception is not caught leading to crash. In
> notmuch_message_get_date the exception is caught, but an internal error
> is raised, again leading to crash.
>
> This patch fixes the error handling by making both functions catch the
> Xapian exceptions, print an error and return NULL or 0.

pushed,

thanks

d

Thread: