]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: Ensure byte* variable usages is for same buffers
authorJeff Lucovsky <jlucovsky@oisf.net>
Sat, 7 Jun 2025 13:25:52 +0000 (09:25 -0400)
committerVictor Julien <victor@inliniac.net>
Tue, 10 Jun 2025 06:36:32 +0000 (08:36 +0200)
commitcd4e728b773634ef9459ee6ef65ef227d8c2c6ac
treea8d854213f5e1d53476504c43d5ac15b605f89d8
parentf7a05f1e8e6d84cf285fd97dcd9c8e168ac5daa8
detect: Ensure byte* variable usages is for same buffers

Issue: 7549

Use the active buffer list to fetch SM variables to ensure that they are
part of the same list so a variable created with bytemath or byteextract
will have context when used with bytejump, e.g

Not needed for content modifiers.
15 files changed:
src/detect-byte-extract.c
src/detect-byte-extract.h
src/detect-byte.c
src/detect-byte.h
src/detect-bytejump.c
src/detect-bytemath.c
src/detect-bytemath.h
src/detect-bytetest.c
src/detect-depth.c
src/detect-distance.c
src/detect-engine-content-inspection.c
src/detect-isdataat.c
src/detect-offset.c
src/detect-within.c
src/util-lua-bytevarlib.c