mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fix an issue with files having gaps before the bof_buffer is filled.
When files had gaps prior to the bof_buffer completely filling, the file gap handling code was never sniffing and passing along as much data as possible so file type identification wasn't working correctly.
This commit is contained in:
parent
89d66af792
commit
6162d986a2
1 changed files with 6 additions and 1 deletions
|
@ -538,7 +538,12 @@ void File::Gap(uint64 offset, uint64 len)
|
|||
return;
|
||||
}
|
||||
|
||||
analyzers.DrainModifications();
|
||||
if ( ! bof_buffer.full )
|
||||
{
|
||||
DBG_LOG(DBG_FILE_ANALYSIS, "[%s] File gap before bof_buffer filled, continued without attempting to fill bof_buffer.", id.c_str());
|
||||
bof_buffer.full = true;
|
||||
DeliverStream((const u_char*) "", 0);
|
||||
}
|
||||
|
||||
file_analysis::Analyzer* a = 0;
|
||||
IterCookie* c = analyzers.InitForIteration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue