mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix buffer over-reads in file_analysis::Manager::Terminate()
This commit is contained in:
parent
965e4d421d
commit
af3b87e100
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ void Manager::Terminate()
|
||||||
|
|
||||||
while ( id_map.NextEntry(key, it) )
|
while ( id_map.NextEntry(key, it) )
|
||||||
{
|
{
|
||||||
keys.push_back(static_cast<const char*>(key->Key()));
|
keys.push_back(string(static_cast<const char*>(key->Key()),
|
||||||
|
key->Size()));
|
||||||
delete key;
|
delete key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue