]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: faster linked list copy
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 5 Jul 2021 15:05:10 +0000 (17:05 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 14 Apr 2022 20:44:35 +0000 (22:44 +0200)
commit45d1a9ae772acdf1291c0880217beb16d3bc60c7
tree1b956cd31caa6c832089e070baad035192f47462
parent2a22b4ca1f7f3254d28c555a80dbcfc76da5da85
detect: faster linked list copy

In DetectAppLayerInspectEngineCopyListToDetectCtx
Avoid quadratic complexity by remembering last element
of the linked list we are inserting into
src/detect-engine-mpm.c
src/detect-engine.c