Luca Deri
dfb9e8ec1f
Merge pull request #940 from lnslbrty/fix/small-and-optimistic-improvments
...
Fixed CodeInspector issues.
2020-07-06 10:23:04 +02:00
Toni Uhlig
c17a21359b
Fixed CodeInspector issues.
...
* Added compiler search list for AC_PROG_CC, AM_PROG_CC_C_O, AC_PROG_CXX, AC_PROG_CC_STDC
for Mac OS X only
The list rendered the AX_CHECK_COMPILE_FLAG([-fsanitize=fuzzer]) useless as it did use
clang for AX_CHECK_COMPILE_FLAG but gcc during the compile process. Seems broken somehow.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-07-05 20:41:02 +02:00
Luca Deri
503e3bb495
Added comment on stddev
2020-07-03 14:45:58 +02:00
Luca Deri
513c857631
Added unit test
2020-07-03 14:43:14 +02:00
Luca Deri
f7b91b46fa
Merge pull request #947 from lnslbrty/add/download-script-wireshark-traces
...
added shell script to download wireshark traces, can be used in combi…
2020-07-03 00:45:45 +02:00
Luca Deri
143fcf0b0e
Merge pull request #946 from lnslbrty/fix/teamviewer-iprange
...
Improved TeamViewer IP range (fixes #944 )
2020-07-03 00:45:11 +02:00
Toni Uhlig
ae89831055
added shell script to download wireshark fuzzing traces, can be used in combination with ./tests/do.sh
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-07-02 20:22:58 +02:00
Toni Uhlig
8f53c231df
Improved TeamViewer IP range ( fixes #944 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-07-02 18:11:39 +02:00
Luca Deri
08698c65e5
Merge pull request #943 from lnslbrty/fix/missing-lengthcheck-in-tls-esni
...
Fixed heap overflow in tls esni extraction triggered by manipulated p…
2020-07-01 12:37:29 +02:00
Luca Deri
2d68f8f635
Merge pull request #942 from lnslbrty/improved/fuzzer-automake-dependency-tracking
...
Added fuzz_*_LDADD to give Automake the opportunity to do some depend…
2020-07-01 12:37:06 +02:00
Luca Deri
2860e3af15
Merge pull request #941 from lnslbrty/add/ossfuzz-script
...
Copy&Paste ./tests/ossfuzz.sh from https://github.com/google/oss-fuzz…
2020-07-01 12:36:42 +02:00
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
Toni Uhlig
05d7400563
Fixed heap overflow in tls esni extraction triggered by manipulated packets.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-29 21:51:46 +02:00
Toni Uhlig
ea30fcb5de
Added fuzz_*_LDADD to give Automake the opportunity to do some dependency tracking.
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-29 21:27:03 +02:00
Toni Uhlig
3068306b60
Copy&Paste ./tests/ossfuzz.sh from https://github.com/google/oss-fuzz/pull/4041
...
* Changing the OSS-Fuzz script from our side is much more easier then
opening a PR to google/oss-fuzz every time we have to change a single line.
* https://github.com/google/oss-fuzz/pull/4041 will be updated once this PR is merged
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2020-06-29 20:50:09 +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