mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-06 01:02:20 +08:00
mdbx: fix assertion to avoid false-positive UB detection by CLANG/LLVM.
Assume this resolve https://github.com/erthink/libmdbx/issues/153 Change-Id: I02ceba1063a338b6dedf17629b51b3466358b0b8
This commit is contained in:
@@ -410,8 +410,8 @@ void __hot maker::mk_continue(const serial_t serial, const essentials ¶ms,
|
||||
assert(out.value.iov_len <= params.maxlen);
|
||||
assert(out.value.iov_len >= length(serial));
|
||||
assert(out.value.iov_base >= out.bytes);
|
||||
assert((uint8_t *)out.value.iov_base + out.value.iov_len <=
|
||||
out.bytes + out.limit);
|
||||
assert((char *)out.value.iov_base + out.value.iov_len <=
|
||||
(char *)&out.bytes + out.limit);
|
||||
}
|
||||
|
||||
void log_pair(logging::loglevel level, const char *prefix, const buffer &key,
|
||||
|
Reference in New Issue
Block a user