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

['htonl']

8 408 _cupsRasterNew call site: 00145 /src/cups/cups/raster-stream.c:463
2 2 1 :

['realloc']

2 2 _cupsRasterAddError call site: 00147 /src/cups/cups/raster-error.c:65
2 2 1 :

['realloc']

2 2 cups_raster_read call site: 00171 /src/cups/cups/raster-stream.c:1432
0 0 None 119 119 cups_globals_alloc call site: 00115 /src/cups/cups/globals.c:195
0 0 None 4 399 _cupsRasterNew call site: 00143 /src/cups/cups/raster-stream.c:451
0 0 None 4 399 _cupsRasterNew call site: 00149 /src/cups/cups/raster-stream.c:469
0 0 1 :

['free']

2 2 cups_raster_update call site: 00177 /src/cups/cups/raster-stream.c:1672
0 0 None 0 431 cupsRasterOpen call site: 00007 /src/cups/cups/raster-stubs.c:114
0 0 None 0 0 cups_globals_alloc call site: 00122 /src/cups/cups/globals.c:349
0 0 None 0 0 _cupsRasterAddError call site: 00147 /src/cups/cups/raster-error.c:43
0 0 None 0 0 _cupsRasterAddError call site: 00147 /src/cups/cups/raster-error.c:50
0 0 None 0 0 _cupsRasterAddError call site: 00148 /src/cups/cups/raster-error.c:70

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 getpid [call site] 00001
1 fopen [call site] 00002
1 fwrite [call site] 00003
1 fclose [call site] 00004
1 LoadRES [function] [call site] 00005
2 open [call site] 00006
2 cupsRasterOpen [function] [call site] 00007
3 _cupsRasterNew [function] [call site] 00008
4 _cupsRasterClearError [function] [call site] 00009
5 _cupsGlobals [function] [call site] 00010
6 pthread_once [call site] 00011
6 cups_globals_init [function] [call site] 00012
7 pthread_key_create [call site] 00013
7 cups_globals_free [function] [call site] 00014
8 _cupsStrFree [function] [call site] 00015
9 _cupsMutexLock [function] [call site] 00016
10 pthread_mutex_lock [call site] 00017
9 cupsArrayFind [function] [call site] 00018
10 cups_array_find [function] [call site] 00019
9 cupsArrayRemove [function] [call site] 00020
10 cups_array_find [function] [call site] 00021
9 _cupsMutexUnlock [function] [call site] 00022
10 pthread_mutex_unlock [call site] 00023
8 cupsArrayDelete [function] [call site] 00024
8 cupsArrayDelete [function] [call site] 00025
8 cupsArrayDelete [function] [call site] 00026
8 httpClose [function] [call site] 00027
9 _httpDisconnect [function] [call site] 00028
10 _httpTLSStop [function] [call site] 00029
11 SSL_get_SSL_CTX [call site] 00030
11 SSL_shutdown [call site] 00031
11 SSL_CTX_free [call site] 00032
11 SSL_free [call site] 00033
10 httpAddrClose [function] [call site] 00034
11 close [call site] 00035
11 unlink [call site] 00036
9 httpAddrFreeList [function] [call site] 00037
9 httpClearFields [function] [call site] 00038
10 httpSetField [function] [call site] 00039
11 http_add_field [function] [call site] 00040
12 strchr [call site] 00041
12 strchr [call site] 00042
12 snprintf [call site] 00043
12 _cups_strlcpy [function] [call site] 00044
13 strlen [call site] 00045
12 strlen [call site] 00046
12 strlen [call site] 00047
12 strlen [call site] 00048
12 snprintf [call site] 00049
12 _cups_strlcpy [function] [call site] 00050
12 snprintf [call site] 00051
12 realloc [call site] 00052
12 _cups_strlcat [function] [call site] 00053
13 strlen [call site] 00054
13 strlen [call site] 00055
12 _cups_strlcat [function] [call site] 00056
12 strdup [call site] 00057
12 http_content_coding_start [function] [call site] 00058
13 strcmp [call site] 00059
13 strcmp [call site] 00060
13 httpFlushWrite [function] [call site] 00061
14 http_write_chunk [function] [call site] 00062
15 snprintf [call site] 00063
15 strlen [call site] 00064
15 http_write [function] [call site] 00065
16 poll [call site] 00066
16 __errno_location [call site] 00067
16 __errno_location [call site] 00068
16 _httpTLSWrite [function] [call site] 00069
17 SSL_write [call site] 00070
16 send [call site] 00071
16 __errno_location [call site] 00072
16 __errno_location [call site] 00073
16 __errno_location [call site] 00074
16 __errno_location [call site] 00075
16 __errno_location [call site] 00076
16 __errno_location [call site] 00077
15 http_write [function] [call site] 00078
15 http_write [function] [call site] 00079
14 http_write [function] [call site] 00080
13 __errno_location [call site] 00081
13 calloc [call site] 00082
13 __errno_location [call site] 00083
13 deflateInit2_ [call site] 00084
13 __errno_location [call site] 00085
13 calloc [call site] 00086
13 __errno_location [call site] 00087
13 inflateInit2_ [call site] 00088
10 httpSetField [function] [call site] 00089
8 _httpFreeCredentials [function] [call site] 00090
9 X509_free [call site] 00091
8 cupsFileClose [function] [call site] 00092
9 cupsFileFlush [function] [call site] 00093
10 cups_compress [function] [call site] 00094
11 crc32 [call site] 00095
11 cups_write [function] [call site] 00096
12 send [call site] 00097
12 write [call site] 00098
12 __errno_location [call site] 00099
11 deflate [call site] 00100
10 cups_write [function] [call site] 00101
9 inflateEnd [call site] 00102
9 cups_write [function] [call site] 00103
9 deflate [call site] 00104
9 cups_write [function] [call site] 00105
9 deflateEnd [call site] 00106
9 httpAddrClose [function] [call site] 00107
9 close [call site] 00108
8 cupsFileClose [function] [call site] 00109
8 cupsFreeOptions [function] [call site] 00110
9 _cupsStrFree [function] [call site] 00111
9 _cupsStrFree [function] [call site] 00112
6 pthread_getspecific [call site] 00113
6 cups_globals_alloc [function] [call site] 00114
7 calloc [call site] 00115
7 geteuid [call site] 00116
7 getenv [call site] 00117
7 getenv [call site] 00118
7 getenv [call site] 00119
7 getenv [call site] 00120
7 getenv [call site] 00121
7 getenv [call site] 00122
7 getuid [call site] 00123
7 _cupsStrAlloc [function] [call site] 00124
8 _cupsMutexLock [function] [call site] 00125
8 cupsArrayNew [function] [call site] 00126
9 cupsArrayNew3 [function] [call site] 00127
10 calloc [call site] 00128
8 compare_sp_items [function] [call site] 00129
9 strcmp [call site] 00130
8 _cupsMutexUnlock [function] [call site] 00131
8 cupsArrayFind [function] [call site] 00132
8 _cupsMutexUnlock [function] [call site] 00133
8 strlen [call site] 00134
8 calloc [call site] 00135
8 _cupsMutexUnlock [function] [call site] 00136
8 cupsArrayAdd [function] [call site] 00137
9 cups_array_add [function] [call site] 00138
10 realloc [call site] 00139
10 cups_array_find [function] [call site] 00140
8 _cupsMutexUnlock [function] [call site] 00141
6 pthread_setspecific [call site] 00142
4 calloc [call site] 00143
4 __errno_location [call site] 00144
4 _cupsRasterAddError [function] [call site] 00145
5 _cupsGlobals [function] [call site] 00146
5 vsnprintf [call site] 00147
5 realloc [call site] 00148
4 cups_raster_io [function] [call site] 00149
4 __errno_location [call site] 00150
4 _cupsRasterAddError [function] [call site] 00151
4 _cupsRasterAddError [function] [call site] 00152
4 cups_raster_io [function] [call site] 00153
4 __errno_location [call site] 00154
4 _cupsRasterAddError [function] [call site] 00155
4 htonl [call site] 00156
4 htonl [call site] 00157
4 cups_raster_io [function] [call site] 00158
4 __errno_location [call site] 00159
4 _cupsRasterAddError [function] [call site] 00160
3 cups_read_fd [function] [call site] 00161
4 read [call site] 00162
4 __errno_location [call site] 00163
3 _cupsRasterNew [function] [call site] 00164
3 cups_write_fd [function] [call site] 00165
4 write [call site] 00166
4 __errno_location [call site] 00167
2 cupsRasterReadHeader2 [function] [call site] 00168
3 _cupsRasterReadHeader [function] [call site] 00169
4 cups_raster_read [function] [call site] 00170
5 cups_raster_io [function] [call site] 00171
5 realloc [call site] 00172
4 cups_raster_read [function] [call site] 00173
4 _cups_strlcpy [function] [call site] 00174
4 _cups_strlcpy [function] [call site] 00175
4 _cups_strlcpy [function] [call site] 00176
4 cups_raster_update [function] [call site] 00177
5 calloc [call site] 00178
2 cupsRasterClose [function] [call site] 00179
3 _cupsRasterDelete [function] [call site] 00180
2 close [call site] 00181
1 unlink [call site] 00182