| OLD | NEW |
| 1 # 2009 June 3 | 1 # 2009 June 3 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #*********************************************************************** | 10 #*********************************************************************** |
| 11 # | 11 # |
| 12 # $Id: corruptD.test,v 1.2 2009/06/05 17:09:12 drh Exp $ | 12 # $Id: corruptD.test,v 1.2 2009/06/05 17:09:12 drh Exp $ |
| 13 | 13 |
| 14 set testdir [file dirname $argv0] | 14 set testdir [file dirname $argv0] |
| 15 source $testdir/tester.tcl | 15 source $testdir/tester.tcl |
| 16 | 16 |
| 17 # Do not use a codec for tests in this file, as the database file is |
| 18 # manipulated directly using tcl scripts (using the [hexio_write] command). |
| 19 # |
| 20 do_not_use_codec |
| 21 |
| 17 #-------------------------------------------------------------------------- | 22 #-------------------------------------------------------------------------- |
| 18 # OVERVIEW | 23 # OVERVIEW |
| 19 # | 24 # |
| 20 # This test file attempts to verify that SQLite does not read past the | 25 # This test file attempts to verify that SQLite does not read past the |
| 21 # end of any in-memory buffers as a result of corrupted database page | 26 # end of any in-memory buffers as a result of corrupted database page |
| 22 # images. Usually this happens because a field within a database page | 27 # images. Usually this happens because a field within a database page |
| 23 # that contains an offset to some other structure within the same page | 28 # that contains an offset to some other structure within the same page |
| 24 # is set to too large a value. A database page contains the following | 29 # is set to too large a value. A database page contains the following |
| 25 # such fields: | 30 # such fields: |
| 26 # | 31 # |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 131 |
| 127 | 132 |
| 128 #------------------------------------------------------------------------- | 133 #------------------------------------------------------------------------- |
| 129 # The following tests, corruptD-1.5.*, focus on the offsets contained | 134 # The following tests, corruptD-1.5.*, focus on the offsets contained |
| 130 # in the cell offset array. | 135 # in the cell offset array. |
| 131 # | 136 # |
| 132 # defragmentPage | 137 # defragmentPage |
| 133 # | 138 # |
| 134 | 139 |
| 135 finish_test | 140 finish_test |
| OLD | NEW |