/ Check-in [ab83d707]
Login

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

Overview
Comment:Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ab83d7077da80ddbcf399d0797d79e964dc64f0e
User & Date: dan 2016-08-11 09:55:55
Context
2016-08-11
18:05
Add the "modeof=<filename>" URI parameter to os_unix.c - used to specify a file to copy permissions from when a new database is created. Also allow passing NULL as the second parameter to sqlite3rbu_vacuum(). check-in: ed406d31 user: dan tags: trunk
13:51
Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command. check-in: 1adb22f5 user: drh tags: branch-3.14
12:31
Merge recent changes from trunk. check-in: 959677b9 user: drh tags: rowvalue
09:55
Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command. check-in: ab83d707 user: dan tags: trunk
01:24
Fix a harmless compiler warning in FTS5. check-in: 2ea0c8b4 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/sqldiff.c.

  1298   1298           if( i>0 ) fprintf(out, ", ");
  1299   1299           printQuoted(out, sqlite3_column_value(pStmt, i));
  1300   1300         }
  1301   1301       }else{
  1302   1302         char *zOtaControl;
  1303   1303         int nOtaControl = sqlite3_column_bytes(pStmt, nCol);
  1304   1304   
  1305         -      zOtaControl = (char*)sqlite3_malloc(nOtaControl);
         1305  +      zOtaControl = (char*)sqlite3_malloc(nOtaControl+1);
  1306   1306         memcpy(zOtaControl, sqlite3_column_text(pStmt, nCol), nOtaControl+1);
  1307   1307   
  1308   1308         for(i=0; i<nCol; i++){
  1309   1309           int bDone = 0;
  1310   1310           if( i>=nPK 
  1311   1311               && sqlite3_column_type(pStmt, i)==SQLITE_BLOB
  1312   1312               && sqlite3_column_type(pStmt, nCol+1+i)==SQLITE_BLOB