Avoid some buffer overreads detected by valgrind while running corruptC.test. (CVS 5898)

FossilOrigin-Name: faa6bd7b615837c920b5b3b027115caa2f56ec15
This commit is contained in:
danielk1977
2008-11-12 18:21:36 +00:00
parent f99b7c8d56
commit 0d0654119f
4 changed files with 20 additions and 18 deletions
+3 -3
View File
@@ -15,7 +15,7 @@
# data base file, then tests that single byte corruptions in
# increasingly larger quantities are handled gracefully.
#
# $Id: corruptC.test,v 1.7 2008/11/12 14:22:25 danielk1977 Exp $
# $Id: corruptC.test,v 1.8 2008/11/12 18:21:36 danielk1977 Exp $
catch {file delete -force test.db test.db-journal test.bu}
@@ -150,8 +150,8 @@ do_test corruptC-2.5 {
catchsql {PRAGMA integrity_check}
} {0 {{*** in database main ***
Corruption detected in cell 710 on page 4
Multiple uses for byte 116 of page 4
Fragmented space is 0 byte reported as 21 on page 4}}}
Multiple uses for byte 661 of page 4
Fragmented space is 249 byte reported as 21 on page 4}}}
# test that a corrupt free cell size is handled (seed 169595)
do_test corruptC-2.6 {