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

@ -1,5 +1,5 @@
C Add\sthe\sfuzzcheck\stest\sprogram.
D 2015-05-25T22:38:00.788
C Fix\san\simportant\sbug\sin\sthe\sxRead\smethod\sof\sthe\sin-memory\sVFS\sfor\sfuzzcheck.
D 2015-05-25T23:14:37.419
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in 411b8dc7191769de8b1ddd5c4d83bcf2e37ed5e4
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@ -651,7 +651,7 @@ F test/fuzz2.test 76dc35b32b6d6f965259508508abce75a6c4d7e1
F test/fuzz3.test efd384b896c647b61a2c1848ba70d42aad60a7b3
F test/fuzz_common.tcl a87dfbb88c2a6b08a38e9a070dabd129e617b45b
F test/fuzz_malloc.test 328f70aaca63adf29b4c6f06505ed0cf57ca7c26
F test/fuzzcheck.c 2235e5713384b38165d3caf9877f59502b0aeeb4
F test/fuzzcheck.c d545dfbca2e9a75de7ae92ed3139900a6fadf846
F test/fuzzdata1.txt 9fceb50868e0b798160e83742bd7e44e457176a0
F test/fuzzdata2.txt ba9b4467d7ec46cc85d32c0d031540cd727ae6ad
F test/fuzzer1.test d4c52aaf3ef923da293a2653cfab33d02f718a36
@ -1279,8 +1279,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
P 7d2c4f7b6695806ab8ce0c6f49d8bc1d77a4320b 7b3d21906a9650377cda56b94facdff75b2cb858
R 00e95d3d9ed40a5829d3d01e66cda04a
T +closed 7b3d21906a9650377cda56b94facdff75b2cb858
P 341cb6abe74e1e9d03c82ffdeba86be6a2d00397
R f5e89509deaf82258e177c7db9b5da20
U drh
Z b84cb4a515b6a871548fcf09855cb826
Z b0b4ed3682ecee9d5832e0b1ae33eee2

View File

@ -1 +1 @@
341cb6abe74e1e9d03c82ffdeba86be6a2d00397
58cd40e89f3060c63abb9a3fca385a1e72ce7bb4

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(