]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
2 years agosrc: fix extern max_pending_packets type 8762/head
Victor Julien [Tue, 25 Apr 2023 13:04:35 +0000 (15:04 +0200)] 
src: fix extern max_pending_packets type

2 years agogithub-ci: add dpdk, nfqueue, nflog to scan-build
Victor Julien [Tue, 25 Apr 2023 13:12:59 +0000 (15:12 +0200)] 
github-ci: add dpdk, nfqueue, nflog to scan-build

2 years agostreaming: improve error handling
Victor Julien [Tue, 25 Apr 2023 13:05:08 +0000 (15:05 +0200)] 
streaming: improve error handling

2 years agooutput: work around scan-build fp
Victor Julien [Tue, 25 Apr 2023 05:23:58 +0000 (07:23 +0200)] 
output: work around scan-build fp

runmodes.c:541:13: warning: Use of memory after it is freed [unix.Malloc]
        if (output->output_ctx != NULL && output->output_ctx->DeInit != NULL)
            ^~~~~~~~~~~~~~~~~~
1 warning generated.

2 years agolog/pcap: work around scan-build fp
Victor Julien [Tue, 25 Apr 2023 05:23:17 +0000 (07:23 +0200)] 
log/pcap: work around scan-build fp

log-pcap.c:1008:24: warning: Use of memory after it is freed [unix.Malloc]
            if (remove(pf->filename) != 0) {
                       ^~~~~~~~~~~~
1 warning generated.

2 years agoaf/xdp: fix memory leaks on thread init failure
Victor Julien [Tue, 25 Apr 2023 05:22:15 +0000 (07:22 +0200)] 
af/xdp: fix memory leaks on thread init failure

source-af-xdp.c:675:21: warning: Potential leak of memory pointed to by 'ptv' [unix.Malloc]
        SCReturnInt(TM_ECODE_FAILED);
                    ^~~~~~~~~~~~~~~
./util-debug.h:275:48: note: expanded from macro 'SCReturnInt'
 #define SCReturnInt(x)                  return x
                                                ^
1 warning generated.

2 years agodpdk: fix scan-build warnings
Victor Julien [Mon, 24 Apr 2023 19:39:45 +0000 (21:39 +0200)] 
dpdk: fix scan-build warnings

runmode-dpdk.c:204:18: warning: Result of 'calloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'ptrdiff_t' [unix.MallocSizeof]
    args->argv = SCCalloc(capacity, sizeof(ptrdiff_t)); // alloc array of pointers
                 ^~~~~~~~           ~~~~~~~~~~~~~~~~~
./util-mem.h:36:18: note: expanded from macro 'SCCalloc'
 #define SCCalloc calloc
                  ^~~~~~
runmode-dpdk.c:278:16: warning: Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **' [unix.MallocSizeof]
    eal_argv = SCMalloc(args.argc * sizeof(args.argv));
               ^~~~~~~~             ~~~~~~~~~~~~~~~~~
./util-mem.h:35:18: note: expanded from macro 'SCMalloc'
 #define SCMalloc malloc
                  ^~~~~~
2 warnings generated.

2 years agogithub-ci: remove debian 9 as it is EOL 8755/head
Victor Julien [Mon, 24 Apr 2023 15:00:42 +0000 (17:00 +0200)] 
github-ci: remove debian 9 as it is EOL

2 years agogithub-ci: update Fedora 36 cov build to Fedora 38
Jason Ish [Thu, 20 Apr 2023 20:44:12 +0000 (14:44 -0600)] 
github-ci: update Fedora 36 cov build to Fedora 38

As Fedora 36 will be EOL in a month.

2 years agogithub-ci: update non-root build to Fedora 37
Jason Ish [Thu, 20 Apr 2023 20:41:37 +0000 (14:41 -0600)] 
github-ci: update non-root build to Fedora 37

As Fedora 36 will be EOL in a month.

2 years agogithub-ci: add Fedora 38 builds
Jason Ish [Thu, 20 Apr 2023 20:38:49 +0000 (14:38 -0600)] 
github-ci: add Fedora 38 builds

2 years agogithub-ci: use cbindgen from packages on almalinux:9
Jason Ish [Thu, 20 Apr 2023 20:30:51 +0000 (14:30 -0600)] 
github-ci: use cbindgen from packages on almalinux:9

AlmaLinux 9 has cbindgen available from the package repositories.

2 years agogithub-ci: add Fedora 37 builders
Jason Ish [Tue, 31 Jan 2023 17:30:03 +0000 (11:30 -0600)] 
github-ci: add Fedora 37 builders

2 years agogithub-ci: add Fedora 36 gcc builder
Jason Ish [Thu, 29 Sep 2022 18:37:16 +0000 (12:37 -0600)] 
github-ci: add Fedora 36 gcc builder

The existing Fedora 36 builder used clang. Add a gcc builder as it can
show different errors.

2 years agogithub-ci: replace Fedora no-jansson build with AlmaLinux
Jason Ish [Tue, 31 Jan 2023 21:04:12 +0000 (15:04 -0600)] 
github-ci: replace Fedora no-jansson build with AlmaLinux

Use AlmaLinux 9 for the no-jansson test instead of Fedora as it will
need to be updated much less.

2 years agogithub-ci: remove Fedora 35 build: EOL
Jason Ish [Tue, 31 Jan 2023 21:01:05 +0000 (15:01 -0600)] 
github-ci: remove Fedora 35 build: EOL

2 years agogithub-ci: enable asan for Ubuntu debug-validation test
Jason Ish [Thu, 2 Feb 2023 22:43:02 +0000 (16:43 -0600)] 
github-ci: enable asan for Ubuntu debug-validation test

2 years agogithub-ci: fedora non-root: remove external script usage
Jason Ish [Mon, 6 Feb 2023 22:28:49 +0000 (16:28 -0600)] 
github-ci: fedora non-root: remove external script usage

In the end, its not needed and makes it easier to copy and paste to a
new test.

2 years agogithub-ci: use bundle.sh script for libhtp, suricata-update
Jason Ish [Thu, 29 Sep 2022 17:32:23 +0000 (11:32 -0600)] 
github-ci: use bundle.sh script for libhtp, suricata-update

Update the GitHub CI workflow to use the bundle.sh script to pull in
Suricata-Update and libhtp. This means one less place where defaults
are hardcoded and can get out of sync.

This also simplifies the variable names that can be embedded in a pull
request message to use the same variable names that bundle.sh
expects. Of note, this removes the _PR variant, instead a branch name
of "pr/N" can be used to specify a PR.

2 years agobundle.sh: allow a PR # to be specified
Jason Ish [Fri, 23 Sep 2022 04:29:28 +0000 (22:29 -0600)] 
bundle.sh: allow a PR # to be specified

Allow pull requests (and merge requests) to be specified by using a
branch name like "pr/111" or "mr/222". This allows CI to use this
script as well, instead of multiple variations of the same thing.

Additonally allow the destination directory to be overridden with the
DESTDIR environment variable.

2 years agopacket/queue: debug validation for pkt src 8754/head
Victor Julien [Mon, 24 Apr 2023 08:07:01 +0000 (10:07 +0200)] 
packet/queue: debug validation for pkt src

2 years agoeve/dnp3: remove noisy debug code
Victor Julien [Mon, 24 Apr 2023 07:45:33 +0000 (09:45 +0200)] 
eve/dnp3: remove noisy debug code

2 years agorust: fix clippy lint for assert
Jason Ish [Thu, 20 Apr 2023 15:49:53 +0000 (09:49 -0600)] 
rust: fix clippy lint for assert

Fix done automatically by clippy --fix

2 years agofuzz/predef_aware: set pkt_src
Victor Julien [Mon, 24 Apr 2023 07:14:04 +0000 (09:14 +0200)] 
fuzz/predef_aware: set pkt_src

2 years agogithub: add scan-build workflow
Victor Julien [Mon, 24 Apr 2023 05:25:25 +0000 (07:25 +0200)] 
github: add scan-build workflow

Add scan-build workflow that fails on any warning.

Exclude libhtp as there is still one open issue there.

2 years agoradix: add debug validation to assist scan-build
Victor Julien [Fri, 21 Apr 2023 12:57:22 +0000 (14:57 +0200)] 
radix: add debug validation to assist scan-build

util-radix-tree.c:595:34: warning: Access to field 'stream' results in a dereference of a null pointer (loaded from field 'prefix') [core.NullDereference]
        if ((temp = (stream[i] ^ bottom_node->prefix->stream[i])) == 0) {
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
util-radix-tree.c:717:30: warning: Access to field 'stream' results in a dereference of a null pointer (loaded from field 'prefix') [core.NullDereference]
        if (SC_RADIX_BITTEST(bottom_node->prefix->stream[differ_bit >> 3],
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-radix-tree.h:27:34: note: expanded from macro 'SC_RADIX_BITTEST'
 #define SC_RADIX_BITTEST(x, y) ((x) & (y))
                                 ^
2 warnings generated.

2 years agodetect: fix potential null pointer deref
Victor Julien [Fri, 21 Apr 2023 12:19:15 +0000 (14:19 +0200)] 
detect: fix potential null pointer deref

Could only happen if htp user data alloc would fail, but handle
it anyway.

Bug: #4952.

2 years agomime: address scan-build warnings
Victor Julien [Fri, 21 Apr 2023 12:12:36 +0000 (14:12 +0200)] 
mime: address scan-build warnings

util-decode-mime.c:189:31: warning: Use of memory after it is freed [unix.Malloc]
            lastSibling->next = entity->child;
            ~~~~~~~~~~~~~~~~~ ^
util-decode-mime.c:827:24: warning: Potential leak of memory pointed to by 'val' [unix.Malloc]
        state->hname = NULL;
                       ^~~~
/usr/lib/llvm-16/lib/clang/16/include/stddef.h:89:24: note: expanded from macro 'NULL'
 #  define NULL ((void*)0)
                       ^
2 warnings generated.

Improve error handling and add assert to avoid these warnings.

Bug: #3147.

2 years agodetect/sigorder: assist scan-build
Victor Julien [Fri, 21 Apr 2023 10:11:36 +0000 (12:11 +0200)] 
detect/sigorder: assist scan-build

Bug: #3152.

2 years agodetect/sigorder: remove unused struct fields
Victor Julien [Fri, 21 Apr 2023 10:11:13 +0000 (12:11 +0200)] 
detect/sigorder: remove unused struct fields

2 years agodetect: fix scan-build warnings
Victor Julien [Fri, 21 Apr 2023 09:33:43 +0000 (11:33 +0200)] 
detect: fix scan-build warnings

detect-engine-address.c:1140:17: warning: Use of memory after it is freed [unix.Malloc]
            r = DetectAddressCmp(ag, ag2);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
detect-engine-address.c:1169:17: warning: Use of memory after it is freed [unix.Malloc]
            r = DetectAddressCmp(ag, ag2);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.

detect-engine-port.c:1161:9: warning: Use of memory after it is freed [unix.Malloc]
        DetectPortPrint(ag2);
        ^~~~~~~~~~~~~~~~~~~~
1 warning generated.

Bug: #3150.
Bug: #3151.

2 years agompm/ac-bs: work around scan-build warnings
Victor Julien [Fri, 21 Apr 2023 09:16:13 +0000 (11:16 +0200)] 
mpm/ac-bs: work around scan-build warnings

util-mpm-ac-bs.c:482:32: warning: Result of 'malloc' is converted to a pointer of type 'uint16_t[256]', which is incompatible with sizeof operand type 'uint16_t' [unix.MallocSizeof]
        ctx->state_table_u16 = SCMalloc(ctx->state_count *
                               ^~~~~~~~
./util-mem.h:35:18: note: expanded from macro 'SCMalloc'
 #define SCMalloc malloc
                 ^~~~~~
util-mpm-ac-bs.c:524:32: warning: Result of 'malloc' is converted to a pointer of type 'uint32_t[256]', which is incompatible with sizeof operand type 'uint32_t' [unix.MallocSizeof]
        ctx->state_table_u32 = SCMalloc(ctx->state_count *
                               ^~~~~~~~
./util-mem.h:35:18: note: expanded from macro 'SCMalloc'
 #define SCMalloc malloc
                 ^~~~~~
2 warnings generated.

Bug: #3148.

2 years agompm/ac: work around scan-build warnings
Victor Julien [Fri, 21 Apr 2023 09:13:19 +0000 (11:13 +0200)] 
mpm/ac: work around scan-build warnings

util-mpm-ac.c:531:32: warning: Result of 'malloc' is converted to a pointer of type 'uint16_t[256]', which is incompatible with sizeof operand type 'uint16_t' [unix.MallocSizeof]
        ctx->state_table_u16 = SCMalloc(ctx->state_count *
                               ^~~~~~~~
./util-mem.h:35:18: note: expanded from macro 'SCMalloc'
 #define SCMalloc malloc
                 ^~~~~~
util-mpm-ac.c:575:32: warning: Result of 'malloc' is converted to a pointer of type 'uint32_t[256]', which is incompatible with sizeof operand type 'uint32_t' [unix.MallocSizeof]
        ctx->state_table_u32 = SCMalloc(ctx->state_count *
                               ^~~~~~~~
./util-mem.h:35:18: note: expanded from macro 'SCMalloc'
 #define SCMalloc malloc
                 ^~~~~~
2 warnings generated.

Bug: #3148.

2 years agompm/hs: fix scan-build warning
Victor Julien [Fri, 21 Apr 2023 08:59:19 +0000 (10:59 +0200)] 
mpm/hs: fix scan-build warning

util-mpm-hs.c:340:20: warning: Potential leak of memory pointed to by 'p' [unix.Malloc]
        p->sids[0] = sid;
        ~~~~~~~~~~~^~~~~
1 warning generated.

Incorrect error handling could lead to a memory leak.

2 years agodecode: suppress scan-build warning
Victor Julien [Fri, 21 Apr 2023 08:30:37 +0000 (10:30 +0200)] 
decode: suppress scan-build warning

2 years agosuricata: work around scan-build warnings
Victor Julien [Fri, 21 Apr 2023 08:25:30 +0000 (10:25 +0200)] 
suricata: work around scan-build warnings

suricata.c:691:17: warning: Value stored to 'bits' during its initialization is never read [deadcode.DeadStores]
    const char *bits = "<unknown>-bits";
                ^~~~   ~~~~~~~~~~~~~~~~
suricata.c:692:17: warning: Value stored to 'endian' during its initialization is never read [deadcode.DeadStores]
    const char *endian = "<unknown>-endian";
                ^~~~~~   ~~~~~~~~~~~~~~~~~~
2 warnings generated.

2 years agostream: fix minor scan-build warning
Victor Julien [Fri, 21 Apr 2023 08:21:17 +0000 (10:21 +0200)] 
stream: fix minor scan-build warning

stream-tcp.c:134:14: warning: Value stored to 'presize' during its initialization is never read [deadcode.DeadStores]
    uint64_t presize = SC_ATOMIC_GET(st_memuse);
             ^~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

2 years agoscan-build: treat as debug validate
Victor Julien [Fri, 21 Apr 2023 04:43:17 +0000 (06:43 +0200)] 
scan-build: treat as debug validate

2 years agoeve: no need to check fields
Victor Julien [Thu, 20 Apr 2023 18:23:10 +0000 (20:23 +0200)] 
eve: no need to check fields

Cppcheck 2.10:

src/output-json-dns.c:460:23: warning: Identical inner 'if' condition is always true (outer condition is 'field' and inner condition is 'field!=NULL'). [identicalInnerCondition]
            if (field != NULL)
                      ^
src/output-json-dns.c:458:9: note: outer condition: field
        TAILQ_FOREACH(field, &custom->head, next)
        ^
src/output-json-dns.c:460:23: note: identical inner condition: field!=NULL
            if (field != NULL)
                      ^

src/output-json-email-common.c:408:27: warning: Identical inner 'if' condition is always true (outer condition is 'field' and inner condition is 'field!=NULL'). [identicalInnerCondition]
                if (field != NULL) {
                          ^
src/output-json-email-common.c:407:13: note: outer condition: field
            TAILQ_FOREACH(field, &custom->head, next) {
            ^
src/output-json-email-common.c:408:27: note: identical inner condition: field!=NULL
                if (field != NULL) {
                          ^
src/output-json-email-common.c:430:27: warning: Identical inner 'if' condition is always true (outer condition is 'field' and inner condition is 'field!=NULL'). [identicalInnerCondition]
                if (field != NULL) {
                          ^
src/output-json-email-common.c:429:13: note: outer condition: field
            TAILQ_FOREACH(field, &md5_conf->head, next) {
            ^
src/output-json-email-common.c:430:27: note: identical inner condition: field!=NULL
                if (field != NULL) {
                          ^
src/output-json-http.c:574:27: warning: Identical inner 'if' condition is always true (outer condition is 'field' and inner condition is 'field!=NULL'). [identicalInnerCondition]
                if (field != NULL)
                          ^
src/output-json-http.c:572:13: note: outer condition: field
            TAILQ_FOREACH(field, &custom->head, next)
            ^
src/output-json-http.c:574:27: note: identical inner condition: field!=NULL
                if (field != NULL)
                          ^

2 years agoyaml: fix dead store
Victor Julien [Thu, 20 Apr 2023 17:40:38 +0000 (19:40 +0200)] 
yaml: fix dead store

conf-yaml-loader.c:391:17: warning: Value stored to 'retval' is never read [deadcode.DeadStores]
                retval = -1;
                ^        ~~
1 warning generated.

2 years agodebug: suppress warning for scan-build
Victor Julien [Thu, 20 Apr 2023 17:39:30 +0000 (19:39 +0200)] 
debug: suppress warning for scan-build

app-layer-ssl.c:1497:27: error: call to undeclared function 'RecordAlreadyProcessed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    DEBUG_VALIDATE_BUG_ON(RecordAlreadyProcessed(ssl_state->curr_connp));
                          ^
1 error generated.

2 years agostream: check debug check for multi-SYN/ACK in TFO
Victor Julien [Tue, 18 Apr 2023 11:48:46 +0000 (13:48 +0200)] 
stream: check debug check for multi-SYN/ACK in TFO

2 years agostream: segment insertion error handling cleanup
Victor Julien [Tue, 18 Apr 2023 11:25:18 +0000 (13:25 +0200)] 
stream: segment insertion error handling cleanup

2 years agodetect/http2.header_name: fix multi buffer setup
Victor Julien [Mon, 17 Apr 2023 18:05:04 +0000 (20:05 +0200)] 
detect/http2.header_name: fix multi buffer setup

2 years agodetect/parse: minor validation code cleanups 8732/head
Victor Julien [Mon, 27 Mar 2023 08:57:03 +0000 (10:57 +0200)] 
detect/parse: minor validation code cleanups

2 years agodetect: add error message for transform w/o matches
Victor Julien [Fri, 24 Mar 2023 16:12:42 +0000 (17:12 +0100)] 
detect: add error message for transform w/o matches

2 years agodetect: pass de_ctx to DetectBufferSetActiveList
Victor Julien [Fri, 24 Mar 2023 15:54:27 +0000 (16:54 +0100)] 
detect: pass de_ctx to DetectBufferSetActiveList

2 years agodetect/http_method: use list util in tests; cleanups
Victor Julien [Fri, 17 Mar 2023 16:44:06 +0000 (17:44 +0100)] 
detect/http_method: use list util in tests; cleanups

2 years agodetect/http_header: use list util in tests
Victor Julien [Fri, 17 Mar 2023 16:39:24 +0000 (17:39 +0100)] 
detect/http_header: use list util in tests

Cleanups.

2 years agodetect/http_client_body: use list util in tests
Victor Julien [Fri, 17 Mar 2023 16:36:53 +0000 (17:36 +0100)] 
detect/http_client_body: use list util in tests

Cleanups.

2 years agodetect/isdataat: use list util in tests; cleanups
Victor Julien [Fri, 17 Mar 2023 13:54:30 +0000 (14:54 +0100)] 
detect/isdataat: use list util in tests; cleanups

2 years agodetect/tls: use list util in tests; cleanups
Victor Julien [Fri, 17 Mar 2023 16:50:27 +0000 (17:50 +0100)] 
detect/tls: use list util in tests; cleanups

2 years agodetect/fast_pattern: use list util
Victor Julien [Fri, 17 Mar 2023 20:18:06 +0000 (21:18 +0100)] 
detect/fast_pattern: use list util

2 years agodetect/byte_extract: use list util in tests
Victor Julien [Fri, 17 Mar 2023 20:06:21 +0000 (21:06 +0100)] 
detect/byte_extract: use list util in tests

2 years agodetect/content: use list util in tests; cleanups
Victor Julien [Fri, 17 Mar 2023 20:12:01 +0000 (21:12 +0100)] 
detect/content: use list util in tests; cleanups

2 years agodetect/dnp3: use list util in tests; cleanups
Victor Julien [Fri, 17 Mar 2023 13:29:53 +0000 (14:29 +0100)] 
detect/dnp3: use list util in tests; cleanups

2 years agodetect/http_uri: remove obsolete tests; clean up
Victor Julien [Fri, 17 Mar 2023 16:49:24 +0000 (17:49 +0100)] 
detect/http_uri: remove obsolete tests; clean up

2 years agodetect/http_user_agent: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:49:50 +0000 (17:49 +0100)] 
detect/http_user_agent: remove obsolete tests

2 years agodetect/http_stat_msg: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:47:46 +0000 (17:47 +0100)] 
detect/http_stat_msg: remove obsolete tests

2 years agodetect/http_stat_code: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:47:18 +0000 (17:47 +0100)] 
detect/http_stat_code: remove obsolete tests

2 years agodetect/http_server_body: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:45:45 +0000 (17:45 +0100)] 
detect/http_server_body: remove obsolete tests

2 years agodetect/http_raw_header: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:44:57 +0000 (17:44 +0100)] 
detect/http_raw_header: remove obsolete tests

2 years agodetect/http_method: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:43:50 +0000 (17:43 +0100)] 
detect/http_method: remove obsolete tests

2 years agodetect/http_host: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:41:59 +0000 (17:41 +0100)] 
detect/http_host: remove obsolete tests

2 years agodetect/http_header: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:39:03 +0000 (17:39 +0100)] 
detect/http_header: remove obsolete tests

2 years agodetect/http_cookie: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:38:27 +0000 (17:38 +0100)] 
detect/http_cookie: remove obsolete tests

2 years agodetect/http_client_body: remove and update tests
Victor Julien [Fri, 17 Mar 2023 16:27:25 +0000 (17:27 +0100)] 
detect/http_client_body: remove and update tests

2 years agodetect/file_data: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 16:23:39 +0000 (17:23 +0100)] 
detect/file_data: remove obsolete tests

2 years agodetect/uricontent: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 14:55:16 +0000 (15:55 +0100)] 
detect/uricontent: remove obsolete tests

2 years agodetect/replace: reduce sm_lists use
Victor Julien [Fri, 17 Mar 2023 14:48:12 +0000 (15:48 +0100)] 
detect/replace: reduce sm_lists use

2 years agodetect/pkt_data: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 14:46:00 +0000 (15:46 +0100)] 
detect/pkt_data: remove obsolete tests

2 years agodetect/pcre: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 14:10:25 +0000 (15:10 +0100)] 
detect/pcre: remove obsolete tests

2 years agodetect/isdataat: remove obsolete test; reduce sm_lists use
Victor Julien [Fri, 17 Mar 2023 13:55:40 +0000 (14:55 +0100)] 
detect/isdataat: remove obsolete test; reduce sm_lists use

2 years agodetect/ftpbounce: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 13:40:02 +0000 (14:40 +0100)] 
detect/ftpbounce: remove obsolete tests

2 years agodetect/geoip: reduce use of sm_list macro
Victor Julien [Fri, 17 Mar 2023 13:41:28 +0000 (14:41 +0100)] 
detect/geoip: reduce use of sm_list macro

2 years agodetect/dns_query: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 13:30:33 +0000 (14:30 +0100)] 
detect/dns_query: remove obsolete tests

2 years agodetect/distance: reduce use of sm_list macro
Victor Julien [Fri, 17 Mar 2023 13:27:58 +0000 (14:27 +0100)] 
detect/distance: reduce use of sm_list macro

2 years agodetect/dce_stub_data: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 13:35:36 +0000 (14:35 +0100)] 
detect/dce_stub_data: remove obsolete tests

2 years agodetect/dce_stub_data: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 13:26:59 +0000 (14:26 +0100)] 
detect/dce_stub_data: remove obsolete tests

2 years agodetect/content: reduce sm_lists use; remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 13:25:51 +0000 (14:25 +0100)] 
detect/content: reduce sm_lists use; remove obsolete tests

2 years agodetect/byte_test: use list util in tests; cleanups
Victor Julien [Fri, 17 Mar 2023 13:23:23 +0000 (14:23 +0100)] 
detect/byte_test: use list util in tests; cleanups

2 years agodetect/byte_math: reduce use of sm_list macro
Victor Julien [Fri, 17 Mar 2023 13:22:40 +0000 (14:22 +0100)] 
detect/byte_math: reduce use of sm_list macro

2 years agodetect/byte_jump: use list util in tests; cleanups
Victor Julien [Fri, 17 Mar 2023 13:19:47 +0000 (14:19 +0100)] 
detect/byte_jump: use list util in tests; cleanups

2 years agodetect/byte_extract: reduce use of sm_list macro
Victor Julien [Fri, 17 Mar 2023 13:14:30 +0000 (14:14 +0100)] 
detect/byte_extract: reduce use of sm_list macro

2 years agodetect/base64_decode: remove obsolete test; test cleanups
Victor Julien [Fri, 17 Mar 2023 13:09:01 +0000 (14:09 +0100)] 
detect/base64_decode: remove obsolete test; test cleanups

2 years agodetect/base64_decode: remove obsolete debug code
Victor Julien [Fri, 17 Mar 2023 13:08:12 +0000 (14:08 +0100)] 
detect/base64_decode: remove obsolete debug code

2 years agodetect/base64_data: remove obsolete tests
Victor Julien [Fri, 17 Mar 2023 13:06:55 +0000 (14:06 +0100)] 
detect/base64_data: remove obsolete tests

2 years agodetect/base64_data: remove use of sm_list macro
Victor Julien [Fri, 17 Mar 2023 13:06:19 +0000 (14:06 +0100)] 
detect/base64_data: remove use of sm_list macro

2 years agodetect/pcre: use util funcs for buffer test
Victor Julien [Mon, 20 Mar 2023 09:47:47 +0000 (10:47 +0100)] 
detect/pcre: use util funcs for buffer test

2 years agodetect: add util funcs to get first and last sigmatch for buffer
Victor Julien [Fri, 17 Mar 2023 17:11:41 +0000 (18:11 +0100)] 
detect: add util funcs to get first and last sigmatch for buffer

2 years agodoc: rules can have http1 as protocol 8727/head
Philippe Antoine [Fri, 7 Apr 2023 12:17:06 +0000 (14:17 +0200)] 
doc: rules can have http1 as protocol

Ticket: #5962

2 years agodetect/content: add negated endswith test
Victor Julien [Fri, 14 Apr 2023 12:17:53 +0000 (14:17 +0200)] 
detect/content: add negated endswith test

2 years agodetect/content: Negated endswith matches
Jeff Lucovsky [Mon, 27 Mar 2023 12:59:46 +0000 (08:59 -0400)] 
detect/content: Negated endswith matches

Issue: 5541

This commit handles negated endswith matches.

2 years agorfb: rustfmt rfb.rs
Haleema Khan [Fri, 7 Apr 2023 00:27:38 +0000 (05:27 +0500)] 
rfb: rustfmt rfb.rs

2 years agorfb: add rfb frames, update tests
Haleema Khan [Fri, 7 Apr 2023 00:26:57 +0000 (05:26 +0500)] 
rfb: add rfb frames, update tests

Adds a PDU frame to the RFB parser.
Update function signature in tests to reflect frames

Ticket: 5717

2 years agodetect/app-layer-protocol: remove use of sm_list macro
Victor Julien [Fri, 17 Mar 2023 13:04:26 +0000 (14:04 +0100)] 
detect/app-layer-protocol: remove use of sm_list macro

2 years agodetect: reduce sm_lists macro use
Victor Julien [Fri, 17 Mar 2023 16:46:32 +0000 (17:46 +0100)] 
detect: reduce sm_lists macro use

2 years agodetect/parse: remove obsolete and commented out code
Victor Julien [Fri, 17 Mar 2023 14:09:02 +0000 (15:09 +0100)] 
detect/parse: remove obsolete and commented out code

2 years agodetect/pcre: add comment indicating rawbytes is a no-op
Victor Julien [Wed, 15 Mar 2023 09:22:09 +0000 (10:22 +0100)] 
detect/pcre: add comment indicating rawbytes is a no-op

2 years agodetect/content: remove commented tests
Victor Julien [Fri, 10 Mar 2023 19:54:45 +0000 (20:54 +0100)] 
detect/content: remove commented tests