diff options
author | Toni <matzeton@googlemail.com> | 2021-02-04 19:28:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 19:28:52 +0100 |
commit | 7255dbe4b703668e7621cdcfc5aa01258a50f0b5 (patch) | |
tree | d0fdb47d0174875a74bcb67dc0504aac9b92a387 /tests/do.sh.in | |
parent | c68c8c79c9e5d65483c32c1772f70b00e846e48b (diff) |
Added fuzzy targets conditional in tests/do.sh.in which prevents the fuzzer from running if nDPI was configured previously --enable-fuzztargets but not for the current config (may produce invalid results). (#1126)
* fixed possible NULL pointer dereference for memcpy(), src pointer should never be NULL
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Co-authored-by: Luca Deri <lucaderi@users.noreply.github.com>
Diffstat (limited to 'tests/do.sh.in')
-rwxr-xr-x | tests/do.sh.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/do.sh.in b/tests/do.sh.in index 4894be0f4..885df7c3c 100755 --- a/tests/do.sh.in +++ b/tests/do.sh.in @@ -2,6 +2,8 @@ cd "$(dirname "${0}")" +FUZZY_TESTING_ENABLED=@BUILD_FUZZTARGETS@ + GCRYPT_ENABLED=@GCRYPT_ENABLED@ GCRYPT_PCAPS="gquic.pcap quic-23.pcap quic-24.pcap quic-27.pcap quic-28.pcap quic-29.pcap quic-mvfst-22.pcap quic-mvfst-27.pcap quic-mvfst-exp.pcap quic_q50.pcap quic_t50.pcap quic_t51.pcap quic_0RTT.pcap quic_interop_V.pcapng quic-33.pcapng doq.pcapng doq_adguard.pcapng dlt_ppp.pcap" READER="../example/ndpiReader -p ../example/protos.txt -c ../example/categories.txt" @@ -67,7 +69,9 @@ check_results() { done } -fuzzy_testing +if [ $FUZZY_TESTING_ENABLED -eq 1 ]; then + fuzzy_testing +fi build_results check_results |