Package: libsqlite3-0
Version: 3.8.7.1-1+deb8u1
Severity: normal
Tags: upstream patch

libsqlite3 crashes following heavy SAVEPOINT usage, for example when running 
Django tests.
SQLite bug: https://www.sqlite.org/src/info/7f7f8026
Patch: https://www.sqlite.org/src/info/c4b9c611

This has been fixed in 3.12.0 but the patch is very simple and can be
backported to 3.8.7 easily.


-- System Information:
Debian Release: jessie/sid
  APT prefers jessie
  APT policy: (500, 'jessie')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-48-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsqlite3-0 depends on:
ii  libc6              2.13-38+deb7u11
ii  multiarch-support  2.13-38+deb7u11

libsqlite3-0 recommends no packages.

libsqlite3-0 suggests no packages.

-- no debconf information
--- a/src/memjournal.c	2012-06-11 10:33:36.000000000 +0100
+++ b/src/memjournal.c	2016-08-23 12:14:29.894884578 +0100
@@ -105,7 +105,7 @@
     nRead -= iSpace;
     iChunkOffset = 0;
   } while( nRead>=0 && (pChunk=pChunk->pNext)!=0 && nRead>0 );
-  p->readpoint.iOffset = iOfst+iAmt;
+  p->readpoint.iOffset = pChunk ? iOfst+iAmt : 0;
   p->readpoint.pChunk = pChunk;
 
   return SQLITE_OK;

Reply via email to