1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix an important bug in the xRead method of the in-memory VFS for fuzzcheck.

FossilOrigin-Name: 58cd40e89f3060c63abb9a3fca385a1e72ce7bb4
This commit is contained in:
drh
2015-05-25 23:14:37 +00:00
parent 495a1ef59b
commit aca7ea1e4d
3 changed files with 8 additions and 9 deletions

View File

@ -328,7 +328,7 @@ static int inmemRead(
memcpy(pData, pVFile->a, iAmt);
return SQLITE_IOERR_SHORT_READ;
}
memcpy(pData, pVFile->a, iAmt);
memcpy(pData, pVFile->a + iOfst, iAmt);
return SQLITE_OK;
}
static int inmemWrite(