From: drh Date: Mon, 13 Feb 2006 13:30:19 +0000 (+0000) Subject: Fix overlapping read logic in the test_async.c demonstration. (CVS 3086) X-Git-Tag: version-3.6.10~3081 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4452838a65537fe5b6d562b4a0eb766510f604c9;p=thirdparty%2Fsqlite.git Fix overlapping read logic in the test_async.c demonstration. (CVS 3086) FossilOrigin-Name: ad25127b067b3135694ddb0de552aad981640669 --- diff --git a/manifest b/manifest index 4cad693861..3035aea54a 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Fix\sa\smemory\sleak\sin\stest_async.c.\s(CVS\s3085) -D 2006-02-13T13:23:58 +C Fix\soverlapping\sread\slogic\sin\sthe\stest_async.c\sdemonstration.\s(CVS\s3086) +D 2006-02-13T13:30:19 F Makefile.in 5d8dff443383918b700e495de42ec65bc1c8865b F Makefile.linux-gcc 74ba0eadf88748a9ce3fd03d2a3ede2e6715baec F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -80,7 +80,7 @@ F src/test4.c ff4e9406b3d2809966d8f0e82468ac5508be9f56 F src/test5.c 7162f8526affb771c4ed256826eee7bb9eca265f F src/test6.c 60a02961ceb7b3edc25f5dc5c1ac2556622a76de F src/test7.c d28d3e62f9594923648fc6a8fb030eba36564ba1 -F src/test_async.c 2d11e331559eb6ec99907bb953a3bf9b2c2502a1 +F src/test_async.c 818c346094f164a5f6d1051c5df4849f548a832c F src/test_md5.c 6c42bc0a3c0b54be34623ff77a0eec32b2fa96e3 F src/test_server.c 087b92a39d883e3fa113cae259d64e4c7438bc96 F src/tokenize.c 382b3bb0ca26eb9153b5d20b246ef512a114a24f @@ -352,7 +352,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P 1c3e6002cd9fd5d30e197448c4d98cdd59163cac -R 71863abd1f71061a21b384345e5e9e1f +P 904ffa4dfb60e00b01db17049de2f4934537f3d8 +R c15c7a4a0ef3b7c380f375710e72f985 U drh -Z 59791472a43f1b258d07c84799e710dd +Z 3b25fcdac403270a231a8a67cd00fbda diff --git a/manifest.uuid b/manifest.uuid index 955e3100e4..bc2eb19f7d 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -904ffa4dfb60e00b01db17049de2f4934537f3d8 \ No newline at end of file +ad25127b067b3135694ddb0de552aad981640669 \ No newline at end of file diff --git a/src/test_async.c b/src/test_async.c index 4f1250d0af..8a55b5609e 100644 --- a/src/test_async.c +++ b/src/test_async.c @@ -474,8 +474,8 @@ static int asyncRead(OsFile *id, void *obuf, int amt){ for(p=async.pQueueFirst; p; p = p->pNext){ if( p->pFile==pFile && p->op==ASYNC_WRITE ){ - int iBeginIn = (p->iOffset - iOffset); - int iBeginOut = (iOffset - p->iOffset); + int iBeginOut = (p->iOffset - iOffset); + int iBeginIn = -iBeginOut; int nCopy; if( iBeginIn<0 ) iBeginIn = 0;