158 Commits
Author SHA1 Message Date
Lukas Sismis 3a6ecab098 github-ci: add OpenBSD 7.9 build
Ticket: 8975
2026-10-08 13:08:22 +00:00
Jason Ish 7ad9874c05 build: include qa/ci in dist
As some of our CI jobs build from the dist, and require this.
2026-09-29 20:49:55 +00:00
Jason Ish 39828e1587 github-ci: factor FreeBSD build into reusable script 2026-09-22 14:36:25 -06:00
Jason Ish fc70f8e788 github-ci: factor out scan-build to a script
So the main part of the build can be used by other CI.
2026-09-22 14:36:25 -06:00
Jason Ish 2147b8f51c github-ci: add build with asan instrumented rust
Factor out most of the testing to a script in hopes that it can be
re-used by other CI systems.
2026-09-22 14:35:34 -06:00
Denis Balashov 344e89e3c6 qa/cocci: fix broken regex alternation in malloc-error-check
Coccinelle uses OCaml Str, not PCRE. The '|' and '()' characters are
literals in OCaml Str, so 'identifier func =~ "(SCMalloc|SCCalloc|...)"'
never matched anything — making the entire script a no-op since its
introduction.

Replace all five patterns with OCaml Str alternation syntax 'A\|B'.

Ticket: 8641
2026-06-10 20:57:40 +00:00
Jason Ish 865b7243a0 http-log: remove support for http-log
http-log was deprecated in Suricata 8, and marked for removal in
Suricata 9.0.

Ticket: #7232
2026-06-02 06:26:11 +00:00
Jason Ish 6368f6401b qa: remove socket_to_gzip_file.py
I'm not really what the purpose of this script is.
2026-06-02 06:26:11 +00:00
Juliana Fajardini 040369ed1a qa/live: update tests for fw stats counters
Part of
Ticket #7699
2026-05-28 20:49:58 +00:00
Victor Julien 95b7f2b998 scan-build: support taint filtering
Support scan-build's taint filtering logic. Adds a yaml config to mark
a dedicated debug validation function as filtering a taint.

Use to suppress warnings in reference, threshold and classification file
handling.

Ticket: #3153.
2026-05-19 17:57:46 +02:00
Lukas Sismis 214e47bea1 dpdk: move to native queue-sized mempools
As a legacy from Suricata 7, mempool size was kept even internally
as a global size. Since in Suricata 8, mempool allocation moved to
per queue model, it makes sense to calculate the correct size right
when loading the configuration.

The previous implementation misscalculated in some scenarios the size
of the mempool which prevented Suricata starting successfully.
This happened, e.g. when there were 32k RX descriptors and 64 TX descs.
The resulting mempool was incorrectly deduced as 32767 (2^n-1), which
didn't even hold all RX descriptors. Instead, it should result to 65535.

Ticket: 8370
2026-04-16 05:58:17 +00:00
Victor Julien 49b1382a8b qa: add nfq based firewall test with live reload 2026-03-31 05:34:16 +00:00
Victor Julien 7ac32910c9 qa: add rule reload step to firewall test
Additionally, use bsize, pcre and urilen.

Ticket: #8204.
Ticket: #8397.
2026-03-31 05:34:16 +00:00
Victor Julien 1c66eec656 qa: add script to test firewall bridge mode 2026-03-31 05:34:16 +00:00
Victor Julien 2658a366ad qa: move live tests into qa/live dir
They are not github specific.
2026-03-08 18:10:49 +00:00
Lukas Sismis d4434ef4e8 dpdk: add live run test suite
Add live tests to verify that mempool, mempool cache sizes, and
potentially other DPDK features are initialized correctly during the
startup.
Follows up on bugs found in mempool settings on real/bonded devices.

The tests are placed in the new folder qa/live/ after a comment
in https://github.com/OISF/suricata/pull/14896 which indicated other
live tests are going to be moved there as well.

Ticket: 8320
2026-02-26 06:29:14 +00:00
Philippe Antoine a2b5225612 rust: bindgen SCSigMatchAppendSMToList
Ticket: 7667
2025-05-21 09:37:22 +02:00
Jason Ish fc2824a9f7 qa: fix suricatasc path 2025-02-27 06:57:45 +01:00
Philippe Antoine 1854503465 qa: remove depcrecated files
lgtm has been superseded by codeql github action
docker and travis are obsolete

Preparatory work for ticket 2696 libhtp rust conversion
2024-07-02 11:52:39 +02:00
Victor Julien ea95aac022 github-actions: add unix socket runmode script and job
Runs with ASAN.
2024-05-16 07:09:24 +02:00
Jason Ish f7114b7fe3 cocci/run-check: log if parallel command is not found
If CONCURRENCY_LEVEL was set, the script would log a concurrency level
even if the parallel command was not available. Not log if parallel is
not available and set concurrency to 1.
2024-02-15 19:27:48 +01:00
Jeff Lucovsky ee6208be9d config/nss: Remove libnspr/libnss traces
Issue: 6712
2024-02-10 22:29:52 +01:00
Victor Julien c89ceaccf1 qa: spelling 2023-05-06 14:50:43 +02:00
Victor Julien 9520aac79c prscript: remove as it is obsolete 2023-05-06 14:50:42 +02:00
Victor Julien 34ee53e5ec cocci: remove action check as we no longer use macros 2022-10-19 23:03:24 +02:00
Lukas Sismis e101384e7b transversal: remove suricata-ids.org references 2022-10-11 06:59:37 +02:00
Victor Julien 353eb9086d cocci: fix python issues 2022-10-01 20:27:38 +02:00
Victor Julien 39cf5b151a src: includes cleanup
Work towards making `suricata-common.h` only introduce system headers
and other things that are independent of complex internal Suricata
data structures.

Update files to compile after this.

Remove special DPDK handling for strlcpy and strlcat, as this caused
many compilation failures w/o including DPDK headers for all files.

Remove packet macros from decode.h and move them into their own file,
turn them into functions and rename them to match our function naming
policy.
2022-10-01 20:27:38 +02:00
Victor Julien ad6bea5108 github-ci/codecov: add rust coverage support
Based on Rust 1.63 and LLVM 14. Update the jobs to meet those requirements.

Includes the bundled libhtp coverage now, including libhtp tests.

Ticket: #4278.
2022-09-23 15:50:36 +02:00
Jason Ish 54be743c48 prelude: remove the prelude output
It was broken in 6 and that didn't cause much issue. Just remove
it for 7.
2021-09-17 10:50:58 +02:00
Philippe Antoine 7ca4b13568 qa: use time on fuzz targets being run on corpus 2021-08-23 09:59:15 +02:00
Jeff Lucovsky 1eeb96696b general: Cleanup bool usage 2021-04-26 12:53:10 +02:00
Victor Julien 3ce05a3583 fuzz: run OSS-Fuzz corpus and track coverage 2021-02-12 14:52:33 +01:00
Victor Julien 80a3bbef3d qa/cocci: support FAIL macros in malloc check 2021-01-20 07:51:48 +01:00
Eric Leblond 48c30efd34 prscript: port to python 3 2020-09-08 07:25:31 +02:00
Zackeus Bengtsson 6887a2ab35 buildbot-pcaps: remove redundant sudo 2020-07-14 10:05:45 +02:00
jason taylor 143f08fa7a prscript: update copyright dates and FSF address
Signed-off-by: jason taylor <[email protected]>
2020-07-14 10:04:35 +02:00
Shivani Bhardwaj db75675f45 qa: add atoi to list of banned functions 2020-07-09 01:01:49 +05:30
Philippe Antoine b0f6737c10 python: style for prscript
Remove unnecessary pass
Remove unused variable
2020-03-14 21:00:42 +01:00
Jason Ish bfe3c0105d wirefuzz: removed unified2 file removal 2020-02-25 07:37:00 +01:00
Philippe Antoine f5190da67e util: UTHmemsearch to use memmem if defined 2020-02-14 10:09:21 +01:00
Jason Ish 222a81f85d travis: remove cocci and macos builds
These tests are covered by Github actions and removing
them may speed up the Travis builds to get results sooner.

Its still worth keeping some of these builds as they test
more compile time options than the Github Actions currently
do.
2019-12-06 15:10:23 -06:00
Victor Julien 2b581fa836 qa/banned-functions: remove strndup now we have a fall back 2019-12-05 13:40:25 +01:00
Eric Leblond 18a1d93c58 qa/coccinelle: fix make distcheck
We need to use top_srcdir to know where the sources are. Relative
directory is not enough.
2019-12-05 13:40:02 +01:00
Eric Leblond 7a8ddf06de qa/coccinelle: flag check for setter and getter
WHen adding something like
/* coccinelle: AppLayerParserStateIssetFlag():4,2:APP_LAYER_PARSER_ */
the coccinelle check will consider that AppLayerParserStateIssetFlag
is taking 4 parameters and that the second one is a flag that needs
to be checked against APP_LAYER_PARSER_.
2019-12-05 13:40:02 +01:00
Eric Leblond 3ded7f1170 qa/coccinelle: fix false positive in setter getter
Coccinelle test was doing a false positive on the function
AppLayerParserStateSetFlag and AppLayerParserStateIssetFlag.
To address that, this patch adds a new coccinelle markup:

 /* coccinelle: AppLayerParserStateSetFlag():2,2:APP_LAYER_PARSER_ */

It indicates that AppLayerParserStateSetFlag is a setter and getter
and that the checks should be disabled inside the function.

Currently this markup is only used for that but following patch will
add some checks on option value.
2019-12-05 13:40:02 +01:00
Eric Leblond f745f0655b qa/coccinelle: port struct-flags.py to Python3 2019-12-05 13:40:02 +01:00
Eric Leblond b58d508bff qa/coccinelle: reformat struct-flags.py 2019-12-05 13:40:02 +01:00
Eric Leblond ba6b58a0da qa: generate struct-flags.cocci at each run 2019-12-05 13:40:02 +01:00
Victor Julien 5bfedf78fc posix: replace bzero with memset
bzero(3): The bzero() function is deprecated (marked as LEGACY in
POSIX.1-2001); use memset(3) in new programs.  POSIX.1-2008 removes
the specification of bzero().

Use memset instead.
2019-09-26 11:04:25 +02:00