Hi,

The GDAL library uses a custom VFS implementation, which, for some operations 
not related to the VFS (xRandomness, xSleep, xCurrentTime etc.) basically 
forwards the call to the default VFS implementation like:

static int OGRSQLiteVFSCurrentTime(sqlite3_vfs* pVFS, double* p1)
{
    sqlite3_vfs* pUnderlyingVFS = GET_UNDERLYING_VFS(pVFS);
    return pUnderlyingVFS->xCurrentTime(pUnderlyingVFS, p1);
}

Up to now, it used iVersion = 1 of the VFS structure, i.e. not implementing 
xCurrentTimeInt64.

Starting with SQLite 3.10.0, the unixCurrentTime function is now aliased to 
the NULL pointer. Which caused the invokation of the xCurrentTime pointer of 
the default VFS to dereference a null pointer function in the above code.

I've fixed/workarounded the issue ( details at 
https://trac.osgeo.org/gdal/ticket/6360 ), but I thought I should still 
mention that this change had compatibility issues.

Best regards,

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com

Reply via email to