In Suricata before 4.x, it was possible to trigger lots of redundant checks on the content of crafted network traffic with a certain signature, because of DetectEngineContentInspection in detect-engine-content-inspection.c. The search engine doesn't stop when it should after no match is found; instead, it stops only upon reaching inspection-recursion-limit (3000 by default).
https://redmine.openinfosecfoundation.org/issues/2231
https://lists.debian.org/debian-lts-announce/2018/12/msg00000.html
https://github.com/OISF/suricata/commit/b9579fbe7dd408200ef03cbe20efddb624b73885