mirror of https://github.com/OISF/suricata
detect/engine: guard SCInspectionBufferCheckAndExpand against overflow
Fix an infinite loop in SCInspectionBufferCheckAndExpand where doubling a uint32_t new_size can overflow if min_size is too large. This causes detection worker threads to spin at 100% CPU. This is a very unlikely scenario, but this patch hardens the logic to be defensive. Ticket: #8834.pull/16213/head
parent
67e8779659
commit
40942ed64c
Loading…
Reference in New Issue