Fuzz introspector: fuzz_format_sas_commands
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
0 7 1 :

['readstat_parser_free']

0 7 readstat_parser_init call site: 00005 /src/readstat/src/readstat_parser.c:9
0 0 None 0 0 unistd_io_init call site: 00007 /src/readstat/src/readstat_io_unistd.c:125
0 0 None 0 0 unistd_io_init call site: 00011 /src/readstat/src/readstat_io_unistd.c:128
0 0 None 0 0 unistd_io_init call site: 00014 /src/readstat/src/readstat_io_unistd.c:131
0 0 None 0 0 unistd_io_init call site: 00017 /src/readstat/src/readstat_io_unistd.c:134
0 0 None 0 0 unistd_io_init call site: 00020 /src/readstat/src/readstat_io_unistd.c:137
0 0 None 0 0 rt_seek_handler call site: 00031 /src/readstat/src/test/test_buffer_io.c:22
0 0 None 0 0 rt_seek_handler call site: 00031 /src/readstat/src/test/test_buffer_io.c:28
0 0 None 0 0 rt_seek_handler call site: 00031 /src/readstat/src/test/test_buffer_io.c:31
0 0 None 0 0 submit_value_label call site: 00070 /src/readstat/src/txt/commands_util.c:10
0 0 None 0 0 submit_value_label call site: 00070 /src/readstat/src/txt/commands_util.c:21
0 0 None 0 0 submit_columns call site: 00073 /src/readstat/src/txt/commands_util.c:54

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 fuzzer_parser_init [function] [call site] 00001
2 readstat_parser_init [function] [call site] 00002
3 calloc [call site] 00003
3 calloc [call site] 00004
3 unistd_io_init [function] [call site] 00005
4 readstat_set_open_handler [function] [call site] 00006
4 unistd_open_handler [function] [call site] 00007
5 open_with_unicode [function] [call site] 00008
6 open [call site] 00009
4 readstat_set_close_handler [function] [call site] 00010
4 unistd_close_handler [function] [call site] 00011
5 close [call site] 00012
4 readstat_set_seek_handler [function] [call site] 00013
4 unistd_seek_handler [function] [call site] 00014
5 lseek [call site] 00015
4 readstat_set_read_handler [function] [call site] 00016
4 unistd_read_handler [function] [call site] 00017
5 read [call site] 00018
4 readstat_set_update_handler [function] [call site] 00019
4 unistd_update_handler [function] [call site] 00020
5 lseek [call site] 00021
4 calloc [call site] 00022
4 readstat_set_io_ctx [function] [call site] 00023
3 readstat_parser_free [function] [call site] 00024
4 readstat_set_io_ctx [function] [call site] 00025
2 readstat_set_open_handler [function] [call site] 00026
2 rt_open_handler [function] [call site] 00027
2 readstat_set_close_handler [function] [call site] 00028
2 rt_close_handler [function] [call site] 00029
2 readstat_set_seek_handler [function] [call site] 00030
2 rt_seek_handler [function] [call site] 00031
2 readstat_set_read_handler [function] [call site] 00032
2 rt_read_handler [function] [call site] 00033
2 readstat_set_update_handler [function] [call site] 00034
2 rt_update_handler [function] [call site] 00035
2 readstat_set_metadata_handler [function] [call site] 00036
2 handle_metadata [function] [call site] 00037
2 readstat_set_note_handler [function] [call site] 00038
2 handle_note [function] [call site] 00039
2 readstat_set_variable_handler [function] [call site] 00040
2 handle_variable [function] [call site] 00041
2 readstat_set_fweight_handler [function] [call site] 00042
2 handle_fweight [function] [call site] 00043
2 readstat_set_value_handler [function] [call site] 00044
2 handle_value [function] [call site] 00045
2 readstat_set_value_label_handler [function] [call site] 00046
2 handle_value_label [function] [call site] 00047
1 readstat_set_io_ctx [function] [call site] 00048
1 readstat_parse_sas_commands [function] [call site] 00049
2 calloc [call site] 00050
2 readstat_copy [function] [call site] 00051
2 readstat_copy [function] [call site] 00052
2 readstat_copy [function] [call site] 00053
2 readstat_copy [function] [call site] 00054
2 readstat_copy_lower [function] [call site] 00055
3 readstat_copy [function] [call site] 00056
3 tolower [call site] 00057
2 strcasecmp [call site] 00058
2 strcasecmp [call site] 00059
2 readstat_schema_find_or_create_entry [function] [call site] 00060
3 strcmp [call site] 00061
3 realloc [call site] 00062
3 strlen [call site] 00063
3 readstat_copy [function] [call site] 00064
2 readstat_schema_find_or_create_entry [function] [call site] 00065
2 readstat_schema_find_or_create_entry [function] [call site] 00066
2 readstat_copy [function] [call site] 00067
2 readstat_schema_find_or_create_entry [function] [call site] 00068
2 readstat_copy [function] [call site] 00069
2 submit_value_label [function] [call site] 00070
2 snprintf [call site] 00071
2 snprintf [call site] 00072
2 submit_columns [function] [call site] 00073
2 readstat_schema_free [function] [call site] 00074
1 readstat_schema_free [function] [call site] 00075
1 readstat_parser_free [function] [call site] 00076