Commit Graph

129 Commits (73ed780095deff40dd625412ac706337be54dc88)

Author SHA1 Message Date
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.
3 years ago
Philippe Antoine 7ca4b13568 qa: use time on fuzz targets being run on corpus 3 years ago
Jeff Lucovsky 1eeb96696b general: Cleanup bool usage 4 years ago
Victor Julien 3ce05a3583 fuzz: run OSS-Fuzz corpus and track coverage 4 years ago
Victor Julien 80a3bbef3d qa/cocci: support FAIL macros in malloc check 4 years ago
Eric Leblond 48c30efd34 prscript: port to python 3 4 years ago
Zackeus Bengtsson 6887a2ab35 buildbot-pcaps: remove redundant sudo 4 years ago
jason taylor 143f08fa7a prscript: update copyright dates and FSF address
Signed-off-by: jason taylor <jtfas90@gmail.com>
4 years ago
Shivani Bhardwaj db75675f45 qa: add atoi to list of banned functions 4 years ago
Philippe Antoine b0f6737c10 python: style for prscript
Remove unnecessary pass
Remove unused variable
5 years ago
Jason Ish bfe3c0105d wirefuzz: removed unified2 file removal 5 years ago
Philippe Antoine f5190da67e util: UTHmemsearch to use memmem if defined 5 years ago
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.
5 years ago
Victor Julien 2b581fa836 qa/banned-functions: remove strndup now we have a fall back 5 years ago
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.
5 years ago
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_.
5 years ago
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.
5 years ago
Eric Leblond f745f0655b qa/coccinelle: port struct-flags.py to Python3 5 years ago
Eric Leblond b58d508bff qa/coccinelle: reformat struct-flags.py 5 years ago
Eric Leblond ba6b58a0da qa: generate struct-flags.cocci at each run 5 years ago
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.
5 years ago
Victor Julien 2da90a1cd8 posix: remove deprecated index/rindex calls
Replace index by strchr and rindex by strrchr.

index(3) states "POSIX.1-2008 removes the specifications of index() and
rindex(), recommending strchr(3) and strrchr(3) instead."

Add index/rindex to banned function check so they don't get reintroduced.

Bug #1443.
5 years ago
Victor Julien a5f1f19b27 travis: move checks into script
This makes error handling easier and more robust:
https://docs.travis-ci.com/user/job-lifecycle#complex-build-commands
5 years ago
Victor Julien da45d92c54 valgrind: support hyperscan warning
Issue on Ubuntu 19.04.

==18655== Conditional jump or move depends on uninitialised value(s)
==18655==    at 0x5454603: hs_alloc_scratch (in /usr/lib/x86_64-linux-gnu/libhs.so.5.1.0)
==18655==    by 0x3D5C9A: SCHSPreparePatterns (util-mpm-hs.c:707)
==18655==    by 0x215FEC: DetectMpmPrepareBuiltinMpms (detect-engine-mpm.c:364)
==18655==    by 0x20813A: SigGroupBuild (detect-engine-build.c:1932)
==18655==    by 0x21287B: SigLoadSignatures (detect-engine-loader.c:366)
==18655==    by 0x35A702: LoadSignatures (suricata.c:2419)
==18655==    by 0x35B0DD: PostConfLoadedDetectSetup (suricata.c:2574)
==18655==    by 0x35C827: main (suricata.c:2986)

https://github.com/intel/hyperscan/issues/148
6 years ago
Eric Leblond 2b72dfaf01 coccinelle: add missing tests to make dist 6 years ago
Jason Ish 4822387411 qa/coccinelle: allow to run from non git directory
For example, when I put the contents of a git worktree into
a Docker image for a test build .git will not be a directory
causing the run_check.sh script to fail.
7 years ago
Victor Julien de6fcb7c92 wirefuzz: add 'quiet' mode
Adds -q commandline option to force quiet operation.
7 years ago
Victor Julien 91f95ace22 qa: add more drmemory suppressions for hyperscan 7 years ago
Peter Manev 7d032e26f1 valgrind: suppressions for NIC offloading calls 7 years ago
Eric Leblond 7ee989a3ab prscript: update urls to use OISF repo 7 years ago
Eric Leblond 620f2540c6 prscript: update docker code
Update docker code to latest docker python API. This patch
preserves backwrd compatibility with older versions.
7 years ago
Victor Julien 5ea58fe3c4 cocci: add test to check for uint use
uint is non-standard and not supported by MinGW. So ban it's use.

spatch file by Eric Leblond.
7 years ago
Victor Julien 90e612d3e4 cocci: ban memmem 7 years ago
Eric Leblond 91d2809bca qa: update struct-flags coccinelle test 7 years ago
Victor Julien ba61265403 qa: add rand/rand_r to banned functions 8 years ago
Victor Julien e6ed0d815c qa: update url in libhtp script 8 years ago
Eric Leblond 4324805478 coccinelle: add siginit test
Add a test that check an inversion during keyword setup where
we add a sigmatch to a signature and then do error handling on it.
This was causing a double free of some elements and ultimately a
segfault.

Proposed-by: Victor Julien <victor@inliniac.net>
8 years ago
Victor Julien 333f2cb310 drmemory: broader suppressions for hyperscan 9 years ago
Eric Leblond bfa90a64d5 prscript: fix error handling
Last result was used as global result.
9 years ago
Victor Julien 8dc63f625f qa: update drmemory suppressions for hyperscan spm matching 9 years ago
Eric Leblond 50b33ad508 prscript: update logic of sync with master test
Code now get master sha on github and check if it is in current
branch with a git command. It also sync first that the current
local branch is in sync with github corresponding branch.

Signed-off-by: Eric Leblond <eric@regit.org>
9 years ago
Victor Julien 31ed7042b5 hyperscan: add DrMemory suppressions 9 years ago
Victor Julien 0138bf5605 qa: add leak sanitzer suppression 9 years ago
Victor Julien 1c3a0434ca wirefuzz: exit with error code on more issues 9 years ago
Victor Julien 9d49b828a6 wirefuzz: logdir handling improvement 9 years ago
Victor Julien 8626eccf58 wirefuzz: remove obsolete stream mem check 9 years ago
Victor Julien 048e538828 wirefuzz: add -N option to count complete passes 9 years ago
Victor Julien 7299388d05 wirefuzz: improve logfile cleanup 9 years ago
Victor Julien 3d0542405d wirefuzz: enforce -n option per run 9 years ago
Victor Julien 0d77c4d560 wirefuzz: add -S option for exclusive rule load 9 years ago