diff options
author | drh <drh@noemail.net> | 2020-07-24 09:17:42 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-07-24 09:17:42 +0000 |
commit | 0c52f5a2b02ed67fef90e498273d35a3596e0b9a (patch) | |
tree | d68878ac8dceb1d01a172259cc96b0d4e6551288 /ext/misc/appendvfs.c | |
parent | d9059bdb5b9e96d06c987ecbe29725912e092fd9 (diff) | |
download | sqlite-0c52f5a2b02ed67fef90e498273d35a3596e0b9a.tar.gz sqlite-0c52f5a2b02ed67fef90e498273d35a3596e0b9a.zip |
Fix other potentiall pointer aliasing problems associated with subclassing
of the sqlite3_file object for various VFS implementations.
FossilOrigin-Name: 270ac1a0f232d75537be40abae559004e950b992cb2c7e94cd6de66e96ae17bd
Diffstat (limited to 'ext/misc/appendvfs.c')
-rw-r--r-- | ext/misc/appendvfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/appendvfs.c b/ext/misc/appendvfs.c index b224245f3..14260efb5 100644 --- a/ext/misc/appendvfs.c +++ b/ext/misc/appendvfs.c @@ -439,7 +439,7 @@ static int apndOpen( p = (ApndFile*)pFile; memset(p, 0, sizeof(*p)); pSubFile = ORIGFILE(pFile); - p->base.pMethods = &apnd_io_methods; + pFile->pMethods = &apnd_io_methods; rc = pSubVfs->xOpen(pSubVfs, zName, pSubFile, flags, pOutFlags); if( rc ) goto apnd_open_done; rc = pSubFile->pMethods->xFileSize(pSubFile, &sz); |