Merge remote-tracking branch 'origin/master' into topic/seth/file-entropy

Conflicts:
	testing/btest/Baseline/plugins.hooks/output
This commit is contained in:
Seth Hall 2015-02-26 16:46:37 -05:00
commit 2e47c277d8
107 changed files with 1441 additions and 550 deletions

View file

@ -492,18 +492,22 @@ void File::EndOfFile()
if ( done )
return;
if ( ! did_mime_type &&
LookupFieldDefaultCount(missing_bytes_idx) == 0 )
DetectMIME();
analyzers.DrainModifications();
if ( file_reassembler )
{
file_reassembler->Flush();
analyzers.DrainModifications();
}
// Mark the bof_buffer as full in case it isn't yet
// so that the whole thing can be flushed out to
// any stream analyzers.
if ( ! bof_buffer.full )
{
bof_buffer.full = true;
DeliverStream((const u_char*) "", 0);
}
analyzers.DrainModifications();
done = true;
file_analysis::Analyzer* a = 0;