Fix an uninitialized value read in sqlite3async.c.

FossilOrigin-Name: 1cf2136c39239a6fea6ac2a555f55865dd517d93
This commit is contained in:
dan 2009-12-02 18:16:56 +00:00
parent 614d265038
commit 19125aaf68
3 changed files with 9 additions and 19 deletions

View File

@ -1231,8 +1231,8 @@ static int asyncFullPathname(
*/
if( rc==SQLITE_OK ){
int i, j;
int n = nPathOut;
char *z = zPathOut;
int n = strlen(z);
while( n>1 && z[n-1]=='/' ){ n--; }
for(i=j=0; i<n; i++){
if( z[i]=='/' ){

View File

@ -1,8 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
C Fix\scompiler\swarnings\sin\stest_hexio.c.
D 2009-12-02T18:03:58
C Fix\san\suninitialized\svalue\sread\sin\ssqlite3async.c.
D 2009-12-02T18:16:56
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in c5827ead754ab32b9585487177c93bb00b9497b3
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -28,7 +25,7 @@ F contrib/sqlitecon.tcl 210a913ad63f9f991070821e599d600bd913e0ad
F doc/lemon.html f0f682f50210928c07e562621c3b7e8ab912a538
F ext/README.txt 913a7bd3f4837ab14d7e063304181787658b14e1
F ext/async/README.txt 0c541f418b14b415212264cbaaf51c924ec62e5b
F ext/async/sqlite3async.c 3d5396cd69851f5633ef29c7491ca9249eac903a
F ext/async/sqlite3async.c 676066c2a111a8b3107aeb59bdbbbf335c348f4a
F ext/async/sqlite3async.h a21e1252deb14a2c211f0e165c4b9122a8f1f344
F ext/fts1/README.txt 20ac73b006a70bcfd80069bdaf59214b6cf1db5e
F ext/fts1/ft_hash.c 3927bd880e65329bdc6f506555b228b28924921b
@ -778,14 +775,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
P ef5b7450292e6f89c2b36427a9cd6f8050ad16f4
R fdcf9d9c8dba46bc4428e5f238bee300
U drh
Z 2525219a794d012de45c85f3a9f8e5b2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFLFqwRoxKgR168RlERAhbDAJ4nqpZhwlgiSBPldDVHJo6fdeg0agCdH417
bE/tW3clXE3LvgWtW5ajIyU=
=DjIg
-----END PGP SIGNATURE-----
P 6a2e0725c20520aa90abb2bc04037ee7acebb930
R 166ec7739206882740b8be9f04ffbce5
U dan
Z e19f4a38e8e35a8d02222ea6c00daf7a

View File

@ -1 +1 @@
6a2e0725c20520aa90abb2bc04037ee7acebb930
1cf2136c39239a6fea6ac2a555f55865dd517d93