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

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: lodepng_fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 27 6.90%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 364 93.0%
All colors 391 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
11 260 decodeGeneric(unsigned char**, unsigned int*, unsigned int*, LodePNGState*, unsigned char const*, unsigned long) call site: 00260
4 343 lodepng_convert(unsigned char*, unsigned char const*, LodePNGColorMode const*, LodePNGColorMode const*, unsigned int, unsigned int) call site: 00343
3 199 inflateHuffmanBlock(ucvector*, LodePNGBitReader*, unsigned int, unsigned long) call site: 00199
2 51 lodepng_inspect(unsigned int*, unsigned int*, LodePNGState*, unsigned char const*, unsigned long) call site: 00051
1 142 HuffmanTree_makeTable(HuffmanTree*) call site: 00142
1 320 unfilterScanline(unsigned char*, unsigned char const*, unsigned char const*, unsigned long, unsigned char, unsigned long) call site: 00320
1 361 getPixelColorsRGBA8(unsigned char*, unsigned long, unsigned char const*, LodePNGColorMode const*) call site: 00361
1 364 getPixelColorsRGB8(unsigned char*, unsigned long, unsigned char const*, LodePNGColorMode const*) call site: 00364
1 373 lodepng_convert(unsigned char*, unsigned char const*, LodePNGColorMode const*, LodePNGColorMode const*, unsigned int, unsigned int) call site: 00373
1 375 rgba8ToPixel(unsigned char*, unsigned long, LodePNGColorMode const*, ColorTree*, unsigned char, unsigned char, unsigned char, unsigned char) call site: 00375
1 389 lodepng::State::~State() call site: 00389 __cxa_begin_catch

Runtime coverage analysis

Covered functions
128
Functions that are reachable but not covered
15
Reachable functions
270
Percentage of reachable functions covered
94.44%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/lodepng/lodepng_fuzzer.cpp 2
/src/lodepng/lodepng.cpp 132

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
lodepng::encode(std::__1::basic_string ,std::__1::allocator >const&,std::__1::vector >const&,unsignedint,unsignedint,LodePNGColorType,unsignedint) /src/lodepng/lodepng.cpp 6 ['N/A', 'N/A', 'int', 'int', 'int', 'int'] 16 0 62 9 4 342 0 1321 901
lodepng::decode(std::__1::vector >&,unsignedint&,unsignedint&,std::__1::basic_string ,std::__1::allocator >const&,LodePNGColorType,unsignedint) /src/lodepng/lodepng.cpp 6 ['N/A', 'N/A', 'N/A', 'N/A', 'int', 'int'] 16 0 80 10 10 282 0 969 47

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
86.0%
231 / 270
Cyclomatic complexity statically reachable by fuzzers
89.0%
1858 / 2095

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity