Merge remote-tracking branch 'security/topic/awelzel/155-reassem-validate-seq-upper-overflow'

* security/topic/awelzel/155-reassem-validate-seq-upper-overflow:
  file_analysis/File: Report overflowing chunks as weird and discard/truncate
  Reassem: Reject blocks overflowing 64bit upper
  zeek-setup: Load scrips before running unit tests
This commit is contained in:
Tim Wojtulewicz 2023-04-11 15:30:45 -07:00
commit d8c1a1babf
8 changed files with 122 additions and 19 deletions

View file

@ -371,6 +371,7 @@ void TCP_Reassembler::BlockInserted(DataBlockMap::const_iterator it)
{
const auto& start_block = it->second;
assert(start_block.seq < start_block.upper);
if ( start_block.seq > last_reassem_seq || start_block.upper <= last_reassem_seq )
return;