#768393 sqlite3: segmentation fault in evolution caused by calling NULL xFetch method

Package:
libsqlite3-0
Source:
sqlite3
Description:
SQLite 3 shared library
Submitter:
Josh Triplett
Date:
2014-11-07 11:42:12 UTC
Severity:
important
#768393#5
Date:
2014-11-07 00:47:37 UTC
From:
To:
I have a massive email folder in Evolution.  Recently, I started
encountering segmentation faults every time I accessed that folder
(opened it, tried to copy mail into it, etc).  Running evolution under
gdb turned up a backtrace leading to the call to xFetch in
sqlite3OsFetch (by way of vdbeSorterExtendFile), with a NULL xFetch
function pointer.

Some searching turned up this upstream patch:
http://www.sqlite.org/src/info/071f7f2decd2f786c0201a4219e9c2cc9d227085

I adapted that patch to apply to 3.8.7-1; adapted version attached.  I
rebuilt sqlite3 with that patch applied, and evolution no longer
segfaults.

- Josh Triplett

#768393#12
Date:
2014-11-07 06:05:16 UTC
From:
To:
 It is already known and evolution itself[1] use the mentioned
function call in a bad way. See their fix[2] for the issue. The
evolution package needs update (as well).

Regards,
Laszlo/GCS
[1] https://bugzilla.gnome.org/show_bug.cgi?id=738965
[2] https://git.gnome.org/browse/evolution-data-server/commit/?id=01cd4a6

#768393#17
Date:
2014-11-07 11:39:42 UTC
From:
To:
severity 768393 important
affects 768393 - evolution
thanks
 As noted, it's Evolution that didn't use correctly that function.
Upstream patch exists and the fixed package just uploaded and accepted
for Jessie.
I'm going to apply the sqlite3 fix that don't let the misuse that
function for Jessie. Until then, it's no longer affects Evolution and
not an RC.

Thanks,
Laszlo/GCS