mirror of https://github.com/OISF/suricata
detect: fix heap overflow issue with buffer setup
In some cases, the InspectionBufferGet function would be followed by
a failure to set the buffer up, for example due to a HTTP body limit
not yet being reached. Yet each call to InspectionBufferGet would lead
to the matching list_id to be added to the
DetectEngineThreadCtx::inspect.to_clear_queue. This array is sized to
add each list only once, but in this case the same id could be added
multiple times, potentially overflowing the array.
(cherry picked from commit 13cebb1857)
pull/5860/head
parent
f25456a7d0
commit
12f7e05c27
Loading…
Reference in New Issue