From: David Bremner Date: Thu, 23 Feb 2017 13:08:15 +0000 (-0400) Subject: Merge branch 'release' X-Git-Tag: 0.24_rc0~32 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=e0e8586fc72763571f9eafeb831c7bc79a15273d;hp=2c5eed16b3b0bff9b6f488d3949ebdb62e8d1c35 Merge branch 'release' Merge in g_hash_table read-after-free fix --- diff --git a/bindings/python/notmuch/version.py b/bindings/python/notmuch/version.py index 1397fefd..8d700260 100644 --- a/bindings/python/notmuch/version.py +++ b/bindings/python/notmuch/version.py @@ -1,3 +1,3 @@ # this file should be kept in sync with ../../../version -__VERSION__ = '0.23.5' +__VERSION__ = '0.23.6' SOVERSION = '4' diff --git a/debian/changelog b/debian/changelog index ccce50e1..9e7868f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -notmuch (0.23.5-2) UNRELEASED; urgency=medium +notmuch (0.23.6-1) UNRELEASED; urgency=medium * Use gpgconf --create-socketdir to create gpg-agent sockets for test suite. diff --git a/lib/database.cc b/lib/database.cc index 8016c4df..386dcd17 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -644,7 +644,7 @@ parse_references (void *ctx, ref = _parse_message_id (ctx, refs, &refs); if (ref && strcmp (ref, message_id)) { - g_hash_table_insert (hash, ref, NULL); + g_hash_table_add (hash, ref); last_ref = ref; } } @@ -653,7 +653,7 @@ parse_references (void *ctx, * reference to the database. We should avoid making a message * its own parent, thus the above check. */ - return last_ref; + return talloc_strdup(ctx, last_ref); } notmuch_status_t diff --git a/version b/version index f6de0017..df47809d 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.23.5 +0.23.6