Fuzz introspector: fuzz_uri
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
4 4 2 :

['pthread_mutexattr_init', 'pthread_mutexattr_destroy']

6 6 pthread_mutex_init call site: 00000 /src/kamailio/src/main.c:3135
0 0 None 741 759 parse_uri call site: 00001 /src/kamailio/./src/core/parser/../parser/parse_uri.c:505
0 0 None 741 759 parse_uri call site: 00004 /src/kamailio/./src/core/parser/../parser/parse_uri.c:1079
0 0 None 741 759 parse_uri call site: 00004 /src/kamailio/./src/core/parser/../parser/parse_uri.c:1087
0 0 None 8 8 pthread_mutex_init call site: 00000 /src/kamailio/src/main.c:3130

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 parse_uri [function] [call site] 00001
2 __ctype_b_loc [call site] 00002
2 __ctype_b_loc [call site] 00003
2 uri_host_char_allowed [function] [call site] 00004
2 get_debug_level [function] [call site] 00005
2 my_pid [function] [call site] 00006
3 getpid [call site] 00007
2 fprintf [call site] 00008
2 strncmp [call site] 00009
2 get_debug_level [function] [call site] 00011
2 fprintf [call site] 00013
2 get_debug_level [function] [call site] 00014
2 fprintf [call site] 00016
2 get_debug_level [function] [call site] 00017
2 fprintf [call site] 00019
2 get_debug_level [function] [call site] 00020
2 fprintf [call site] 00022
2 get_debug_level [function] [call site] 00023
2 fprintf [call site] 00025
2 get_debug_level [function] [call site] 00026
2 fprintf [call site] 00028
2 get_debug_level [function] [call site] 00029
2 fprintf [call site] 00031
2 get_debug_level [function] [call site] 00032
2 fprintf [call site] 00034
2 get_debug_level [function] [call site] 00035
2 fprintf [call site] 00037