mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-29 23:12:35 +08:00
mdbx: rework PNL, DPL and TXN lists.
Change-Id: I79c7399912516b17cc255fc8e24b5941338e5eb1
This commit is contained in:
@@ -412,7 +412,7 @@ static int handle_freedb(const uint64_t record_number, const MDBX_val *key,
|
||||
problem_add("entry", record_number, "wrong idl size", "%" PRIuPTR,
|
||||
data->iov_len);
|
||||
size_t number = (data->iov_len >= sizeof(pgno_t)) ? *iptr++ : 0;
|
||||
if (number < 1 || number > MDBX_LIST_MAX)
|
||||
if (number < 1 || number > MDBX_PNL_MAX)
|
||||
problem_add("entry", record_number, "wrong idl length", "%" PRIuPTR,
|
||||
number);
|
||||
else if ((number + 1) * sizeof(pgno_t) > data->iov_len) {
|
||||
|
Reference in New Issue
Block a user