Fix a number of Coverity findings

- 1458048: Use-after-free in the SQLite logger
- 1457823: Missing a break statement in script-opt reduction
- 1453966: Dead code in CompHash
- 1445417: Unintialized variable in StaticHash64
- 1437716: Unintialized variables in FileInfo in scan.l
This commit is contained in:
Tim Wojtulewicz 2021-07-02 11:14:54 -07:00
parent 7dd18ec906
commit 5e00f78920
5 changed files with 8 additions and 6 deletions

View file

@ -67,7 +67,7 @@ void KeyedHash::Hash256(const void* bytes, uint64_t size, hash256_t* result)
hash64_t KeyedHash::StaticHash64(const void* bytes, uint64_t size)
{
hash64_t result;
hash64_t result = 0;
highwayhash::InstructionSets::Run<highwayhash::HighwayHash>(cluster_highwayhash_key, reinterpret_cast<const char *>(bytes), size, &result);
return result;
}