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

['returnErrorInt']

7 7 pixcmapAddRGBA call site: 00089 /src/leptonica/src/colormap.c:450
7 7 1 :

['returnErrorInt']

7 7 pixSetWidth call site: 00029 /src/leptonica/src/pix1.c:1007
7 7 1 :

['returnErrorInt']

7 7 pixSetHeight call site: 00033 /src/leptonica/src/pix1.c:1033
7 7 1 :

['returnErrorInt']

7 7 pixSetDepth call site: 00036 /src/leptonica/src/pix1.c:1059
7 7 1 :

['returnErrorInt']

7 7 pixSetSpp call site: 00041 /src/leptonica/src/pix1.c:1172
0 47 2 :

['returnErrorPtr', 'pixDestroy']

0 47 pixCreateNoInit call site: 00065 /src/leptonica/src/pix1.c:355
0 31 4 :

['returnErrorPtr', 'pixdata_malloc', 'pixGetHeight', 'pixGetWpl']

0 42 pixExtractData call site: 00134 /src/leptonica/src/pix1.c:1756
0 7 1 :

['returnErrorPtr']

0 7 pixcmapDeserializeFromMemory call site: 00082 /src/leptonica/src/colormap.c:2134
0 7 1 :

['returnErrorPtr']

0 7 pixCreate call site: 00061 /src/leptonica/src/pix1.c:321
0 7 1 :

['returnErrorPtr']

0 7 pixCreateHeader call site: 00026 /src/leptonica/src/pix1.c:542
0 5 1 :

['lept_stderr']

0 5 pixcmapDestroy call site: 00057 /src/leptonica/src/colormap.c:276
0 0 None 14 140 pixcmapIsValid call site: 00096 /src/leptonica/src/colormap.c:314

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 leptSetStdNullHandler() [function] [call site] 00001
2 leptSetStderrHandler [function] [call site] 00002
2 send_to_devnull(char const*) [function] [call site] 00003
1 pixReadMemSpix [function] [call site] 00004
2 pixDeserializeFromMemory [function] [call site] 00005
3 returnErrorPtr [function] [call site] 00006
4 lept_stderr [function] [call site] 00007
5 vsnprintf [call site] 00008
3 lept_stderr [function] [call site] 00009
3 returnErrorPtr [function] [call site] 00010
3 returnErrorPtr [function] [call site] 00011
3 returnErrorPtr [function] [call site] 00012
3 returnErrorPtr [function] [call site] 00013
3 returnErrorPtr [function] [call site] 00014
3 pixCreateHeader [function] [call site] 00015
4 returnErrorPtr [function] [call site] 00016
4 returnErrorPtr [function] [call site] 00017
4 returnErrorPtr [function] [call site] 00018
4 lept_stderr [function] [call site] 00019
4 returnErrorPtr [function] [call site] 00020
4 lept_stderr [function] [call site] 00021
4 returnErrorPtr [function] [call site] 00022
4 lept_stderr [function] [call site] 00023
4 lept_stderr [function] [call site] 00024
4 lept_stderr [function] [call site] 00025
4 calloc [call site] 00026
4 returnErrorPtr [function] [call site] 00027
4 pixSetWidth [function] [call site] 00028
5 returnErrorInt [function] [call site] 00029
6 lept_stderr [function] [call site] 00030
5 returnErrorInt [function] [call site] 00031
4 pixSetHeight [function] [call site] 00032
5 returnErrorInt [function] [call site] 00033
5 returnErrorInt [function] [call site] 00034
4 pixSetDepth [function] [call site] 00035
5 returnErrorInt [function] [call site] 00036
5 returnErrorInt [function] [call site] 00037
4 pixSetWpl [function] [call site] 00038
5 returnErrorInt [function] [call site] 00039
4 pixSetSpp [function] [call site] 00040
5 returnErrorInt [function] [call site] 00041
5 returnErrorInt [function] [call site] 00042
4 pixSetSpp [function] [call site] 00043
3 returnErrorPtr [function] [call site] 00044
3 pixGetWpl [function] [call site] 00045
4 returnErrorInt [function] [call site] 00046
3 pixDestroy [function] [call site] 00047
4 lept_stderr [function] [call site] 00048
4 pixFree [function] [call site] 00049
5 pixGetData [function] [call site] 00050
6 returnErrorPtr [function] [call site] 00051
5 pixdata_free [function] [call site] 00052
5 pixGetText [function] [call site] 00053
6 returnErrorPtr [function] [call site] 00054
5 pixDestroyColormap [function] [call site] 00055
6 returnErrorInt [function] [call site] 00056
6 pixcmapDestroy [function] [call site] 00057
7 lept_stderr [function] [call site] 00058
3 lept_stderr [function] [call site] 00059
3 pixCreate [function] [call site] 00060
4 pixCreateNoInit [function] [call site] 00061
5 pixCreateHeader [function] [call site] 00062
5 returnErrorPtr [function] [call site] 00063
5 pixGetWpl [function] [call site] 00064
5 pixdata_malloc [function] [call site] 00065
5 pixDestroy [function] [call site] 00066
5 returnErrorPtr [function] [call site] 00067
5 pixSetData [function] [call site] 00068
6 returnErrorInt [function] [call site] 00069
5 pixSetPadBits [function] [call site] 00070
6 returnErrorInt [function] [call site] 00071
6 pixGetDimensions [function] [call site] 00072
7 returnErrorInt [function] [call site] 00073
6 lept_stderr [function] [call site] 00074
6 pixGetData [function] [call site] 00075
6 pixGetWpl [function] [call site] 00076
4 returnErrorPtr [function] [call site] 00077
3 returnErrorPtr [function] [call site] 00078
3 pixcmapDeserializeFromMemory [function] [call site] 00079
4 returnErrorPtr [function] [call site] 00080
4 returnErrorPtr [function] [call site] 00081
4 returnErrorPtr [function] [call site] 00082
4 returnErrorPtr [function] [call site] 00083
4 pixcmapCreate [function] [call site] 00084
5 returnErrorPtr [function] [call site] 00085
5 calloc [call site] 00086
5 calloc [call site] 00087
4 pixcmapAddRGBA [function] [call site] 00088
5 returnErrorInt [function] [call site] 00089
5 returnErrorInt [function] [call site] 00090
3 pixDestroy [function] [call site] 00091
3 returnErrorPtr [function] [call site] 00092
3 pixSetColormap [function] [call site] 00093
4 returnErrorInt [function] [call site] 00094
4 pixDestroyColormap [function] [call site] 00095
4 pixcmapIsValid [function] [call site] 00096
5 returnErrorInt [function] [call site] 00097
5 returnErrorInt [function] [call site] 00098
5 returnErrorInt [function] [call site] 00099
5 lept_stderr [function] [call site] 00100
5 lept_stderr [function] [call site] 00101
5 lept_stderr [function] [call site] 00102
5 pixGetDepth [function] [call site] 00103
6 returnErrorInt [function] [call site] 00104
5 lept_stderr [function] [call site] 00105
5 lept_stderr [function] [call site] 00106
5 lept_stderr [function] [call site] 00107
5 lept_stderr [function] [call site] 00108
5 pixGetMaxColorIndex [function] [call site] 00109
6 returnErrorInt [function] [call site] 00110
6 returnErrorInt [function] [call site] 00111
6 pixGetDimensions [function] [call site] 00112
6 returnErrorInt [function] [call site] 00113
6 pixGetWpl [function] [call site] 00114
6 pixGetData [function] [call site] 00115
6 pixZero [function] [call site] 00116
7 returnErrorInt [function] [call site] 00117
7 returnErrorInt [function] [call site] 00118
7 pixGetWidth [function] [call site] 00119
8 returnErrorInt [function] [call site] 00120
7 pixGetHeight [function] [call site] 00121
8 returnErrorInt [function] [call site] 00122
7 pixGetWpl [function] [call site] 00123
7 pixGetData [function] [call site] 00124
5 lept_stderr [function] [call site] 00125
4 returnErrorInt [function] [call site] 00126
3 pixDestroy [function] [call site] 00127
3 returnErrorPtr [function] [call site] 00128
3 pixGetData [function] [call site] 00129
3 pixcmapIsValid [function] [call site] 00130
3 pixDestroy [function] [call site] 00131
3 returnErrorPtr [function] [call site] 00132
1 pixExtractData [function] [call site] 00133
2 returnErrorPtr [function] [call site] 00134
2 pixGetData [function] [call site] 00135
2 pixSetData [function] [call site] 00136
2 pixGetWpl [function] [call site] 00137
2 pixGetData [function] [call site] 00138
2 pixdata_malloc [function] [call site] 00139
2 returnErrorPtr [function] [call site] 00140
1 lept_free [function] [call site] 00141
1 pixDestroy [function] [call site] 00142