/ Check-in [8151913a]
Login

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

Overview
Comment:Fix an error in the setDeviceCharacteristics() procedure for the (unsupported) QNX code in os_unix.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8151913a3987f4dd2d6efee046727f5fa9b6f11d5d3867ea8f512c03a212ac2b
User & Date: drh 2018-01-15 14:32:37
Context
2018-01-15
15:49
Fix a zipfile problem with extracting zero length files compressed using deflate. check-in: cf640872 user: dan tags: trunk
14:32
Fix an error in the setDeviceCharacteristics() procedure for the (unsupported) QNX code in os_unix.c. check-in: 8151913a user: drh tags: trunk
2018-01-14
20:12
Avoid excess stack usage when a VALUES clause with lots of rows occurs within a scalar expression. This fixes a problem discovered by OSSFuzz. check-in: a4fa0581 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

  3946   3946     if( pFile->sectorSize == 0 ){
  3947   3947       struct statvfs fsInfo;
  3948   3948          
  3949   3949       /* Set defaults for non-supported filesystems */
  3950   3950       pFile->sectorSize = SQLITE_DEFAULT_SECTOR_SIZE;
  3951   3951       pFile->deviceCharacteristics = 0;
  3952   3952       if( fstatvfs(pFile->h, &fsInfo) == -1 ) {
  3953         -      return pFile->sectorSize;
         3953  +      return;
  3954   3954       }
  3955   3955   
  3956   3956       if( !strcmp(fsInfo.f_basetype, "tmp") ) {
  3957   3957         pFile->sectorSize = fsInfo.f_bsize;
  3958   3958         pFile->deviceCharacteristics =
  3959   3959           SQLITE_IOCAP_ATOMIC4K |       /* All ram filesystem writes are atomic */
  3960   3960           SQLITE_IOCAP_SAFE_APPEND |    /* growing the file does not occur until