]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/transforms: write directly in inspect buffer 12125/head 12143/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 7 Nov 2024 16:49:45 +0000 (17:49 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Mon, 18 Nov 2024 10:59:02 +0000 (11:59 +0100)
commitf80ebd5a30b02db5915f749f0c067c7adefbbe76
tree17f0e20427333fc210ce06a1100583c78a82ef82
parentc3aa3ae102e1a20ea2e36e0639030d934725888b
detect/transforms: write directly in inspect buffer

instead of writing to a temporary buffer and then copying,
to save the cost of copying.

Ticket: 7229

Not a cherry-pick as we do not put the transforms in rust,
but just do this optimization in C
src/detect-engine.c
src/detect-engine.h
src/detect-transform-casechange.c
src/detect-transform-compress-whitespace.c
src/detect-transform-dotprefix.c
src/detect-transform-header-lowercase.c
src/detect-transform-strip-pseudo-headers.c
src/detect-transform-strip-whitespace.c
src/detect-transform-urldecode.c
src/detect-transform-xor.c