diff options
author | Kazuo Teramoto <kaz.rag@gmail.com> | 2011-12-31 02:37:41 -0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-31 23:08:15 -0400 |
commit | 442d405ad301bd0bc9dc1d385c21f943ba743308 (patch) | |
tree | f0b84fe8afff65a90dda76152645d85b16bde5d2 /test | |
parent | 7da6733e890b913281afd5061cf5a648094a1eb4 (diff) |
lib: call g_mime_init() from notmuch_database_open()
As reported in
id:"CAEbOPGyuHnz4BPtDutnTPUHcP3eYcRCRkXhYoJR43RUMw671+g@mail.gmail.com"
sometimes gmime tries to access a NULL pointer, e.g. g_mime_iconv_open()
tries to access iconv_cache that is NULL if g_mime_init() is not called.
This causes notmuch to segfault when calling gmime functions.
Calling g_mime_init() initializes iconv_cache and others variables needed
by gmime, making sure they are initialized when notmuch calls gmime
functions.
Test marked fix by db.
Diffstat (limited to 'test')
-rwxr-xr-x | test/python | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/python b/test/python index 0b56db30..c3aa7266 100755 --- a/test/python +++ b/test/python @@ -5,7 +5,6 @@ test_description="python bindings" add_email_corpus test_begin_subtest "compare thread ids" -test_subtest_known_broken test_python <<EOF import notmuch db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE) |