]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix an off-by-one error while constructing the name of the mmap file for
authordrh <drh@noemail.net>
Mon, 10 May 2010 19:51:32 +0000 (19:51 +0000)
committerdrh <drh@noemail.net>
Mon, 10 May 2010 19:51:32 +0000 (19:51 +0000)
the wal-index under os_unix.c.

FossilOrigin-Name: 6e3735f72cb7d2f4d16c8f9bc59ff159c75243e5

manifest
manifest.uuid
src/os_unix.c

index 2b7b4027a519410447727fbdb6b0e575ae3ea11d..5cdf879263e35b89dc0c0f0ef6cd08b550309e8e 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,8 @@
-C Merge\s[96d6eaf4d2]\sand\s[40b0a6357b].
-D 2010-05-10T18:10:18
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+C Fix\san\soff-by-one\serror\swhile\sconstructing\sthe\sname\sof\sthe\smmap\sfile\sfor\nthe\swal-index\sunder\sos_unix.c.
+D 2010-05-10T19:51:33
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in a5cad1f8f3e021356bfcc6c77dc16f6f1952bbc3
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -152,7 +155,7 @@ F src/os.c aec6922553585a25d5655666defc125a7e217674
 F src/os.h b389844e5469a2918e8a45fe6ae52b4c28dfb2b2
 F src/os_common.h 0d6ee583b6ee3185eb9d951f890c6dd03021a08d
 F src/os_os2.c 8ad77a418630d7dee91d1bb04f79c2096301d3a0
-F src/os_unix.c f3a7ea94e5b59b602d6a6981489554dabcd9c88b
+F src/os_unix.c 34fe71c67fce72360411d60fe069c7f0dc612dd0
 F src/os_win.c a8fc01d8483be472e495793c01064fd87e56a5c1
 F src/pager.c a47af9c2c9ca425bd68642d61764266331a3323f
 F src/pager.h 934b598583a9d936bb13c37d62a2fe68ac48781c
@@ -813,7 +816,14 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 40b0a6357b160e04326ab176955a68a1cf3f8b7c 96d6eaf4d2be453191b36875811d9556ad0763ed
-R 37996b296fbd165c26242b3ad78ab5eb
-U dan
-Z 33e8496ccc7b964e8849eef5eb4645d8
+P c67756c404669141fa06a1ce3f1efadefa277bc6
+R a32c835dc9b43b32dcafe3e3af944d60
+U drh
+Z 3ba54b43517c1555d6a58b385aeeda6a
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFL6GPIoxKgR168RlERAvgHAJ4mrKDkzo8GJO2fKoAPudvDpTqQZgCfeiBD
+rtdc++T8qeWjlXhi4ufBbL8=
+=5REM
+-----END PGP SIGNATURE-----
index 1b7532601f9cf5ba101dd28237b652fdb452346b..72f5d9aff952de045d8e15a408e1c9ad1df643af 100644 (file)
@@ -1 +1 @@
-c67756c404669141fa06a1ce3f1efadefa277bc6
\ No newline at end of file
+6e3735f72cb7d2f4d16c8f9bc59ff159c75243e5
\ No newline at end of file
index 8c10d1ed33f1885c6a52672ba9b2fb3ecdfdc54a..7cc55c913cb389b409e11b850e0c603361783d59 100644 (file)
@@ -4974,7 +4974,7 @@ static int unixShmOpen(
   }
   memset(pNew, 0, sizeof(*pNew));
   pNew->zFilename = (char*)&pNew[1];
-  sqlite3_snprintf(nName+10, pNew->zFilename, "%s-wal-index", zName);
+  sqlite3_snprintf(nName+11, pNew->zFilename, "%s-wal-index", zName);
 
   /* Look to see if there is an existing unixShmFile that can be used.
   ** If no matching unixShmFile currently exists, create a new one.