/ Check-in [1cf2136c]
Login

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

Overview
Comment:Fix an uninitialized value read in sqlite3async.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1cf2136c39239a6fea6ac2a555f55865dd517d93
User & Date: dan 2009-12-02 18:16:56
Context
2009-12-02
20:25
Change an error message in FTS3 to avoid using an uninitialized variable. check-in: 620a8a2b user: drh tags: trunk
18:16
Fix an uninitialized value read in sqlite3async.c. check-in: 1cf2136c user: dan tags: trunk
18:03
Fix compiler warnings in test_hexio.c. check-in: 6a2e0725 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/async/sqlite3async.c.

  1227   1227   
  1228   1228     /* Because of the way intra-process file locking works, this backend
  1229   1229     ** needs to return a canonical path. The following block assumes the
  1230   1230     ** file-system uses unix style paths. 
  1231   1231     */
  1232   1232     if( rc==SQLITE_OK ){
  1233   1233       int i, j;
  1234         -    int n = nPathOut;
  1235   1234       char *z = zPathOut;
         1235  +    int n = strlen(z);
  1236   1236       while( n>1 && z[n-1]=='/' ){ n--; }
  1237   1237       for(i=j=0; i<n; i++){
  1238   1238         if( z[i]=='/' ){
  1239   1239           if( z[i+1]=='/' ) continue;
  1240   1240           if( z[i+1]=='.' && i+2<n && z[i+2]=='/' ){
  1241   1241             i += 1;
  1242   1242             continue;