mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: mdbx_chk - empty freedb record isn't an error.
Change-Id: Ic3e2d2d266b23e5bdd4f5ec5062cfb9c07f162c7
This commit is contained in:
parent
c9642d1082
commit
a0435cfd71
@ -320,7 +320,7 @@ static int handle_freedb(size_t record_number, MDB_val *key, MDB_val* data) {
|
||||
problem_add("entry", record_number, "wrong idl size", "%zu", data->mv_size);
|
||||
else {
|
||||
number = *iptr++;
|
||||
if (number <= 0 || number >= MDB_IDL_UM_MAX)
|
||||
if (number >= MDB_IDL_UM_MAX)
|
||||
problem_add("entry", record_number, "wrong idl length", "%zi", number);
|
||||
else if ((number + 1) * sizeof(size_t) != data->mv_size)
|
||||
problem_add("entry", record_number, "mismatch idl length", "%zi != %zu",
|
||||
|
Loading…
Reference in New Issue
Block a user