Test failed with Berkerley DB 4.5,may be Berkerley DB BUG?

in Bug Reports
the failed test case is test/Freeze/dbmap,when testing sorting...,I got
I notice that the dbKey is initialized by initializeInDbt(Key,Dbt) function,in initializeInDbt, ulen is set to 0.
according to Berkerley DB manual,the will be fine,I think this may be Berkerley DB's bug. But for the 'In Dbt' should be keep unchanged,so if we set_ulen() equal to set_size() maybe ok,too. Isn't It?
The error occured when call IteratorHelperI::find(const Key&), when I addMapI.cpp:258: Freeze::DatabaseException:
Dbc::get: Dbt not large enough for available data: DB_BUFFER_SMALL: User memory too small for return value
dbKey.set_ulen(dbKey.get_size());,the test is fine.
I notice that the dbKey is initialized by initializeInDbt(Key,Dbt) function,in initializeInDbt, ulen is set to 0.
according to Berkerley DB manual,the will be fine,I think this may be Berkerley DB's bug. But for the 'In Dbt' should be keep unchanged,so if we set_ulen() equal to set_size() maybe ok,too. Isn't It?
0
Comments