Ivan Nardi
6f046df0dc
STUN: fix detection of DTLS (#2187)
Fix a memory leak
```
==97697==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x55a6967cfa7e in malloc (/home/ivan/svnrepos/nDPI/fuzz/fuzz_ndpi_reader+0x701a7e) (BuildId: c7124999fa1ccc54346fa7bd536d8eab88c3ea01)
#1 0x55a696972ab5 in ndpi_malloc /home/ivan/svnrepos/nDPI/src/lib/ndpi_memory.c:60:25
#2 0x55a696972da0 in ndpi_strdup /home/ivan/svnrepos/nDPI/src/lib/ndpi_memory.c:113:13
#3 0x55a696b7658d in processClientServerHello /home/ivan/svnrepos/nDPI/src/lib/protocols/tls.c:2394:46
#4 0x55a696b86e81 in processTLSBlock /home/ivan/svnrepos/nDPI/src/lib/protocols/tls.c:897:5
#5 0x55a696b80649 in ndpi_search_tls_udp /home/ivan/svnrepos/nDPI/src/lib/protocols/tls.c:1262:11
#6 0x55a696b67a57 in ndpi_search_tls_wrapper /home/ivan/svnrepos/nDPI/src/lib/protocols/tls.c:2751:5
#7 0x55a696b67758 in switch_to_tls /home/ivan/svnrepos/nDPI/src/lib/protocols/tls.c:1408:3
#8 0x55a696c47810 in stun_search_again /home/ivan/svnrepos/nDPI/src/lib/protocols/stun.c:422:4
#9 0x55a6968a22af in ndpi_process_extra_packet /home/ivan/svnrepos/nDPI/src/lib/ndpi_main.c:7247:9
#10 0x55a6968acd6f in ndpi_internal_detection_process_packet /home/ivan/svnrepos/nDPI/src/lib/ndpi_main.c:7746:5
#11 0x55a6968aba3f in ndpi_detection_process_packet /home/ivan/svnrepos/nDPI/src/lib/ndpi_main.c:8013:22
#12 0x55a69683d30e in packet_processing /home/ivan/svnrepos/nDPI/fuzz/../example/reader_util.c:1723:31
#13 0x55a69683d30e in ndpi_workflow_process_packet /home/ivan/svnrepos/nDPI/fuzz/../example/reader_util.c:2440:10
#14 0x55a69680f08f in LLVMFuzzerTestOneInput /home/ivan/svnrepos/nDPI/fuzz/fuzz_ndpi_reader.c:135:7
[...]
SUMMARY: AddressSanitizer: 16 byte(s) leaked in 1 allocation(s).
```
Found by oss-fuzzer
See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64564
2023-11-30 09:09:40 +01:00
..
2023-10-30 10:28:19 +01:00
2023-08-20 15:18:19 +02:00
2023-03-20 17:00:46 +01:00
2023-07-18 07:41:56 +02:00
2023-02-09 20:02:12 +01:00
2023-02-16 18:04:34 +01:00
2023-11-07 17:46:29 +01:00
2023-02-09 20:02:12 +01:00
2023-07-11 10:12:08 +02:00
2023-02-09 20:02:12 +01:00
2023-04-25 16:37:28 +02:00
2023-09-16 11:26:11 +02:00
2023-09-10 21:30:26 +02:00
2023-08-20 15:18:19 +02:00
2023-01-25 11:44:59 +01:00
2023-11-29 17:13:00 +01:00
2023-10-09 15:41:46 +02:00
2023-07-18 07:41:56 +02:00
2023-07-11 10:12:08 +02:00
2023-09-10 18:44:50 +02:00
2023-07-18 07:41:56 +02:00
2023-10-07 13:34:37 +02:00
2023-11-07 17:46:29 +01:00
2023-01-25 11:44:59 +01:00
2023-07-11 10:12:08 +02:00
2023-02-16 18:04:34 +01:00
2023-02-09 20:02:12 +01:00
2023-10-29 20:21:24 +01:00
2023-10-29 20:21:24 +01:00
2023-10-07 13:34:37 +02:00
2023-11-07 17:46:29 +01:00
2023-11-07 17:46:29 +01:00
2023-08-20 15:18:19 +02:00
2023-11-09 10:50:59 +01:00
2023-10-15 12:00:26 +02:00
2023-10-15 12:00:26 +02:00
2023-11-30 09:09:40 +01:00
2023-05-29 19:24:00 +02:00
2023-11-09 10:50:59 +01:00
2023-09-10 15:07:52 +02:00
2023-10-07 13:34:37 +02:00
2023-07-18 07:41:56 +02:00
2023-11-09 10:50:59 +01:00
2023-02-16 18:04:34 +01:00
2023-11-29 17:13:00 +01:00
2023-09-16 11:26:11 +02:00
2023-08-20 15:18:19 +02:00