svn rev #20215: branches/krb5-1-6/ src/plugins/kdb/db2/libdb2/btree/ src/plugins/kdb/db2/libdb2/test/

tlyu@MIT.EDU tlyu at MIT.EDU
Thu Jan 31 20:23:13 EST 2008


Commit By: tlyu
Log Message: 
ticket: 5880
version_fixed: 1.6.4

pull up r20214 from trunk

 r20214 at cathode-dark-space:  tlyu | 2008-01-31 20:03:11 -0500
 ticket: new
 target_version: 1.6.4
 tags: pullup
 subject: libdb btree page split on zero index corrupts db
 component: krb5-kdc
 
 Splitting a btree page on index 0 can corrupt the database if the key
 length plus data length is exactly a certain value.  This certain size
 causes the item to get the left page to itself, and causes the right
 page to contain an erroneous additional index "hole" having an
 uninitialized value.  This bug may be one of the remaining causes of
 unexplained database corruption reported over the years.  Shawn Emery
 provided useful data from actual instances of this corruption.
 
 Add a test case for this bug.  (Raw libdb test rather than kdb; the
 latter would be much harder.)
 




Changed Files:
_U  branches/krb5-1-6/
U   branches/krb5-1-6/src/plugins/kdb/db2/libdb2/btree/bt_split.c
U   branches/krb5-1-6/src/plugins/kdb/db2/libdb2/test/run.test



More information about the cvs-krb5 mailing list