This commit is contained in:
moneromooo-monero 2025-03-28 19:06:03 +00:00 committed by GitHub
commit 68782bb228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,7 +145,7 @@ struct binary_archive<false> : public binary_archive_base<false>
{
auto current = bytes_.cbegin();
auto end = bytes_.cend();
good_ &= (0 <= tools::read_varint(current, end, v));
good_ &= (0 < tools::read_varint(current, end, v));
current = std::min(current, bytes_.cend());
bytes_ = {current, std::size_t(bytes_.cend() - current)};
}