/ Check-in [fc9791ea]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a harmless compiler warning in Sessions.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fc9791ea987352e3e1322fbb7f833c23b402432af8249f9d397c6f7456788637
User & Date: drh 2018-12-14 13:47:17
Context
2018-12-14
16:00
Avoid a buffer overread in ptrmapPutOvflPtr() that can occurs in a corrupt database file that has large entries and uses autovacuum. check-in: f8b781cf user: drh tags: trunk
13:47
Fix a harmless compiler warning in Sessions. check-in: fc9791ea user: drh tags: trunk
13:35
Expand the size of the temporary page used during btree rebalancing by a few bytes, to avoid problems with small buffer overreads that can occur on corrupted database files. check-in: 32754ca6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/session/sqlite3session.c.

  1150   1150     int op,                         /* One of SQLITE_UPDATE, INSERT, DELETE */
  1151   1151     sqlite3_session *pSession,      /* Session object pTab is attached to */
  1152   1152     SessionTable *pTab              /* Table that change applies to */
  1153   1153   ){
  1154   1154     int iHash; 
  1155   1155     int bNull = 0; 
  1156   1156     int rc = SQLITE_OK;
  1157         -  SessionStat1Ctx stat1 = {0};
         1157  +  SessionStat1Ctx stat1 = {{0,0,0,0,0},0};
  1158   1158   
  1159   1159     if( pSession->rc ) return;
  1160   1160   
  1161   1161     /* Load table details if required */
  1162   1162     if( sessionInitTable(pSession, pTab) ) return;
  1163   1163   
  1164   1164     /* Check the number of columns in this xPreUpdate call matches the