mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
H3 does not check for zero length input.
This commit is contained in:
parent
1576239f67
commit
79a6a26f9f
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ HashPolicy::Hasher::Hasher(size_t seed)
|
|||
HashPolicy::HashType
|
||||
HashPolicy::Hasher::operator()(const void* x, size_t n) const
|
||||
{
|
||||
return h3_(x, n);
|
||||
return n == 0 ? 0 : h3_(x, n);
|
||||
}
|
||||
|
||||
HashPolicy::HashVector DefaultHashing::Hash(const void* x, size_t n) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue