Luca Deri
be35d423b4
Make clean enhancement
2020-07-01 12:34:28 +02:00
Luca Deri
cf9c0b96b8
Indent
2020-06-30 16:25:53 +02:00
Alfredo Cardigliano
ea6332e004
Fix segfault on ndpi_guess_protocol_id with flow = null
2020-06-30 15:54:52 +02:00
Luca Deri
392ce44573
Added ndpi_print_bin() API call
2020-06-29 22:36:46 +02:00
Luca Deri
0d2d44f1b6
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
2020-06-29 19:51:36 +02:00
Luca Deri
07615903e2
Merge pull request #939 from lnslbrty/improved/fuzzy-reader-smp
...
Improved fuzz_ndpi_reader which supports now SMP/MT w/o race-coniditi…
2020-06-29 19:15:46 +02:00
Luca Deri
2c263bc726
Added ndpi_bin_similarity() for computing bin similarity
2020-06-29 19:09:38 +02:00
Toni Uhlig
4a6c525db8
Improved fuzz_ndpi_reader which supports now SMP/MT w/o race-coniditions.
...
./tests/do.sh can supports SMP/MT via environment variables.
Removed -fno-sanitize=shift as well, was fixed by 317d3ffd .
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-29 19:07:59 +02:00
Luca Deri
93a4a4387a
Merge pull request #938 from IvanNardi/errors
...
Errors
2020-06-28 21:32:08 +02:00
Nardi Ivan
f39e3c98f0
Update test results
2020-06-28 12:47:27 +02:00
Nardi Ivan
317d3ffd3e
Fix undefined behaviour in internal tests
...
Error messages:
ndpiReader.c:3211:2: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
ndpiReader.c:3207:5: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
The errors started popping up since 3d9285f1
2020-06-28 12:13:21 +02:00
Nardi Ivan
b24f5c4c0a
Fix memory leak about purged/expired flows
...
Create an helper to avoid similar errors in the future
Fixes: 1a62f4c7
2020-06-28 12:05:12 +02:00
Nardi Ivan
d6a97219ea
Fix use-after-free in http content parsing
2020-06-28 12:05:12 +02:00
Nardi Ivan
3669c14afd
DNP3: add missing initialization
2020-06-28 12:05:12 +02:00
Nardi Ivan
ece5d3e199
Fix (harmless) memory leaks when DPDK is enabled
2020-06-28 12:05:12 +02:00
Nardi Ivan
2cdf7ce806
Fix startup when DPDK is enabled
...
Fixes:a58c838c4
2020-06-28 12:05:12 +02:00
Nardi Ivan
2effa57d8a
ndpiReader: fix ports statistics
...
They should take idle/expired flows into account, too
2020-06-28 12:05:12 +02:00
Nardi Ivan
b68b45f3bb
TLS: extract JA3 signatures in some corner cases
...
In some (rare) cases, Client Hello message contains lots of cipher
suits.
2020-06-28 12:05:12 +02:00
Luca Deri
b2e89e6736
Merge pull request #937 from lnslbrty/re-add-corpus-zipfile-for-google-oss-fuzz
...
Re-Added corpus zipfile generation required for google-oss fuzzer
2020-06-28 07:29:45 +02:00
Luca Deri
1010520cc4
Merge pull request #936 from lnslbrty/fix/h323-off-by-one
...
Fixed off-by-one error in h323.
2020-06-28 07:28:55 +02:00
Toni Uhlig
f028cce209
Re-Added corpus zipfile generation required for google-oss fuzzer
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-27 23:04:20 +02:00
Toni Uhlig
fbfa54eee6
Fixed off-by-one error in h323.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-27 22:58:05 +02:00
Luca Deri
ff67e09101
Restored compiler check for fuzzy targets
2020-06-27 19:34:57 +02:00
Luca Deri
76e6c38459
Use clang where available and fallback to gcc when missing
2020-06-27 19:15:52 +02:00
Luca Deri
243104a8c2
Merge pull request #935 from lnslbrty/fix/fuzzing-tests
...
fixed fuzzing tests in a way that ./tests/do.sh is now able to use co…
2020-06-27 18:57:56 +02:00
Toni Uhlig
1f4523e331
fixed fuzzing tests in a way that ./tests/do.sh is now able to use corpus *.pcap files from ./tests/pcap
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-27 18:41:03 +02:00
Luca Deri
b5f3facf7c
Added notes whenever a new flow risk is added
2020-06-26 23:39:48 +02:00
Luca Deri
8566288e43
Added malformed packet risk support
2020-06-26 22:37:52 +02:00
Luca Deri
8de62c6d34
Values stored in patricia tree are now 32 bit (they used to be 16 bit) long
2020-06-26 17:49:45 +02:00
lucaderi
ebfb5e7f01
Check for CentOS 6
2020-06-26 09:01:58 +02:00
Luca Deri
d805611fcb
Merge pull request #931 from lnslbrty/fix/autogen.sh
...
fixed autoconf version check
2020-06-25 23:31:10 +02:00
Luca Deri
9742dcc45c
Merge pull request #930 from IvanNardi/extcap
...
Extcap
2020-06-25 23:30:20 +02:00
Toni Uhlig
f38a8bd7a5
fixed autoconf version check
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-25 20:02:23 +02:00
Nardi Ivan
3c66ca236b
Make lua script more robust
2020-06-25 18:02:03 +02:00
Nardi Ivan
70a926088f
Fixed harmless memory leak in extcap initialization
2020-06-25 18:02:03 +02:00
Nardi Ivan
6b69e7ebbc
Restore extcap functionality, i.e. integration with wireshark
2020-06-25 18:02:03 +02:00
Luca Deri
0b53bc2aab
Disabled unused code
2020-06-25 10:50:39 +02:00
lucaderi
ecdf7df454
Compilation fixes for non-Linux (or outdated Linux) platforms
2020-06-25 10:25:24 +02:00
lucaderi
3034e53d00
CentOS6 fix (santize won't work as too old system)
...
Fixes warning
2020-06-25 10:22:16 +02:00
Luca Deri
2350daa2dc
Merge pull request #928 from lnslbrty/added/yet-another-ndpi-integration-example
...
PROPOSAL: ndpiSimpleIntegration: added another integration example
2020-06-25 10:05:49 +02:00
Luca Deri
d710b8291d
Merge pull request #927 from lnslbrty/fix/fbzero-missing-length-check
...
Fixed missing length check in fbzero.
2020-06-24 22:17:35 +02:00
Luca Deri
485e56d855
Merge pull request #926 from lnslbrty/added/hulustream-sni-pattern
...
Added hulustream SNI pattern. Fixes #904 .
2020-06-24 22:17:09 +02:00
Luca Deri
38c0d927a9
Merge pull request #925 from lnslbrty/fix/ndpi-rader-unitialized-values
...
Fixed unitialized values in ndpiReader protocol detection bitmask dur…
2020-06-24 22:16:48 +02:00
Luca Deri
94a68451df
Merge pull request #924 from lnslbrty/improved/autoconf-sanitizer-compile-flag-checks
...
Allow -fsanitize for LLVM as well as for GCC.
2020-06-24 22:15:11 +02:00
Toni Uhlig
17c26911fb
ndpiSimpleIntegration: added another integration example
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-24 22:03:18 +02:00
Toni Uhlig
ca68beda85
Fixed missing length check in fbzero.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-23 18:35:50 +02:00
Toni Uhlig
2f5766d2f5
Added hulustream SNI pattern. Fixes #904 .
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-23 17:30:37 +02:00
Toni Uhlig
39800c88fa
Fixed unitialized values in ndpiReader protocol detection bitmask during dga selftest.
...
* make ./tests/vagrind_test.sh directory agnostic
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-23 17:23:56 +02:00
Toni Uhlig
678fbcdfd6
Allow -fsanitize for LLVM as well as for GCC.
...
* renamed --with-llvm-sanitizer to --with-sanitizer
* disable all optimisations (-O0) if --with-sanitizer set,
no functions/paramaters/variables will be optimised, improves debugging
* enable undefined behaviour sanitizer (ubsan)
* enable leak sanitizer (lsan)
* check if -fsanitize=fuzzer is available and --enable-fuzztargets set,
fail if not (only supported by clang)
* include level 3 debugging information (-g3), improves macro debugging
* disabled ubsan misaligned pointer access and lshift overflow
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-23 00:22:33 +02:00
Luca Deri
d9af1562f0
Fixes #906
...
Packet bins are not printed wehn empty
2020-06-22 14:30:26 +02:00