]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/byte_test: Allow nbytes value to be a variable
authorJeff Lucovsky <jlucovsky@oisf.net>
Fri, 7 Jul 2023 14:31:59 +0000 (10:31 -0400)
committerVictor Julien <vjulien@oisf.net>
Mon, 10 Jul 2023 07:27:03 +0000 (09:27 +0200)
commitda866356c06668ca6c05726a3f9e6fe465fcc127
tree5267bf2ed110c879c1f705373aa7275ed5341d96
parentc339e7600a20cd4d3b60e5a8caa5c58d66bc553b
detect/byte_test: Allow nbytes value to be a variable

Issue: 6144

This commit allows the byte_test keyword to accept an existing
variable name for a value (the value may still be specified directly as
an integer).

All nbytes values are subject to the same value constraints as before
- 23 if included with string
- 8 otherwise
src/detect-bytetest.c
src/detect-bytetest.h
src/detect-engine-content-inspection.c