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

['validate_end']

12 12 cupsCopyString call site: 00046 /src/cups/cups/string.c:115
4 357 3 :

['__errno_location', 'strerror', '_cupsRasterAddError']

4 357 cups_raster_update call site: 00195 /src/cups/cups/raster-stream.c:1874
4 4 1 :

['htonl']

8 718 _cupsRasterNew call site: 00149 /src/cups/cups/raster-stream.c:794
2 2 1 :

['getuid']

4 4 cups_globals_alloc call site: 00138 /src/cups/cups/globals.c:379
2 2 1 :

['realloc']

2 2 _cupsRasterAddError call site: 00151 /src/cups/cups/raster-error.c:66
2 2 1 :

['realloc']

2 2 cups_raster_read call site: 00180 /src/cups/cups/raster-stream.c:1617
0 0 None 36 56 cups_globals_alloc call site: 00121 /src/cups/cups/globals.c:179
0 0 1 :

['free']

6 359 cups_raster_update call site: 00194 /src/cups/cups/raster-stream.c:1871
0 0 None 6 6 cups_globals_alloc call site: 00133 /src/cups/cups/globals.c:341
0 0 None 4 357 _cupsRasterNew call site: 00146 /src/cups/cups/raster-stream.c:783
0 0 None 2 2 cups_globals_alloc call site: 00136 /src/cups/cups/globals.c:369
0 0 None 2 2 cups_globals_alloc call site: 00137 /src/cups/cups/globals.c:374

Fuzzer calltree

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