Fuzz introspector

Project overview

High level conclusions

Fuzzers reach 17.94% of cyclomatic complexity. Improvements could be made
Fuzzers reach 12.50% of all functions. Improvements need to be made
Fuzzer pidgin_xml_fuzzer is blocked: runtime coverage only covers 0.0% of its reachable functions.
Fuzzer pidgin_utils_fuzzer is blocked: runtime coverage only covers 0.0% of its reachable functions.

Reachability and coverage overview

Functions statically reachable by fuzzers
12.5%
1118/8941
Cyclomatic complexity statically reachable by fuzzers
17.94%
13666/76162
Functions covered at runtime
0

Fuzzers overview

Fuzzer Fuzzer filename Functions Reached Functions unreached Fuzzer depth Files reached Basic blocks reached Cyclomatic complexity Details
pidgin_xml_fuzzer /src/pidgin/libpurple/pidgin_xml_fuzzer.c 1067 7874 30 70 29675 12459 pidgin_xml_fuzzer.c
pidgin_utils_fuzzer /src/pidgin/libpurple/pidgin_utils_fuzzer.c 355 7798 30 41 6199 2678 pidgin_utils_fuzzer.c

Fuzzer details

Fuzzer: pidgin_xml_fuzzer

Call tree overview

The following is the call tree with color coding for which functions are hit/not hit. This info is based on the coverage achieved of all fuzzers together and not just this specific fuzzer. This should change in the future to be per-fuzzer-basis.

For further technical details on what the call tree overview is, please see the Glossary .

Full calltree

The following link provides a visualisation of the full calltree overlayed with coverage information: full calltree

For futher technical details on how the call tree is made, please see the Glossary .

Fuzz blockers

The followings nodes represent call sites where fuzz blockers occur

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
4683 0 EP call site xmlnode_from_str

Functions hit (dynamic analysis based)

Covered functions
0
Functions that are reachable but not covered
1067
Reachable functions
1067
Percentage of reachable functions covered
0.0%
NB: The sum of covered functions and functions that are reachable but not covered need not be 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 our of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files hit

filename functions hit
/src/pidgin/libpurple/pidgin_xml_fuzzer.c 1
/src/pidgin/libpurple/xmlnode.c 18
/work/meson/../../src/glib/glib/gmessages.c 19
/work/meson/../../src/glib/glib/gstrfuncs.c 15
/work/meson/../../src/glib/glib/gprintf.c 5
/ 74
/work/meson/../../src/glib/glib/gtestutils.c 20
/work/meson/../../src/glib/glib/gpattern.c 5
/work/meson/../../src/glib/glib/gmem.c 7
/work/meson/../../src/glib/glib/gutf8.c 7
/work/meson/../../src/glib/glib/gthread-posix.c 18
/work/meson/../../src/glib/glib/gcharset.c 5
/work/meson/../../src/glib/glib/gthread.c 3
/work/meson/../../src/glib/glib/gmem.h 1
/work/meson/../../src/glib/glib/libcharset/localcharset.c 3
/work/meson/../../src/glib/glib/genviron.c 1
/work/meson/../../src/glib/glib/gstring.c 13
/work/meson/../../src/glib/glib/gslice.c 39
/work/meson/../../src/glib/glib/gutils.c 1
/work/meson/../../src/glib/glib/glib-init.c 2
/work/meson/../../src/glib/glib/gmain.c 1
/work/meson/../../src/glib/glib/gutils.h 2
/work/meson/../../src/glib/glib/gutilsprivate.h 1
/work/meson/../../src/glib/glib/gstring.h 1
/work/meson/../../src/glib/glib/gconvert.c 15
/work/meson/../../src/glib/glib/ghash.c 29
/work/meson/../../src/glib/glib/grefcount.c 2
/work/meson/../../src/glib/glib/gquark.c 4
/work/meson/../../src/glib/glib/ggettext.c 4
/work/meson/../../src/glib/glib/gslist.c 8
/work/meson/../../src/glib/glib/gerror.c 10
/work/meson/../../src/glib/glib/garray.c 6
/src/libxml2/parser.c 119
/src/libxml2/threads.c 14
/src/libxml2/globals.c 22
/src/libxml2/error.c 13
/src/libxml2/dict.c 14
//usr/include/pthread.h 1
/src/libxml2/SAX2.c 46
/src/libxml2/xmlstring.c 16
/src/libxml2/parserInternals.c 23
/src/libxml2/tree.c 89
/src/libxml2/valid.c 84
/src/libxml2/hash.c 25
/src/libxml2/entities.c 19
/src/libxml2/xmlmemory.c 1
/src/libxml2/encoding.c 16
/src/libxml2/HTMLparser.c 5
/src/libxml2/buf.c 20
/src/libxml2/list.c 9
/src/libxml2/xmlregexp.c 54
/src/libxml2/chvalid.c 1
/src/libxml2/xmlIO.c 18
//usr/include/x86_64-linux-gnu/sys/stat.h 1
/src/libxml2/uri.c 32
/src/libxml2/xzlib.c 2
/src/libxml2/xmlunicode.c 37
/src/libxml2/HTMLtree.c 1
/src/libxml2/catalog.c 11
/src/libxml2/xpath.c 1
/src/pidgin/libpurple/util.c 5
/src/pidgin/libpurple/protocols/jabber/caps.c 6
/work/meson/../../src/glib/glib/glist.c 8
/src/pidgin/libpurple/cipher.c 6
/src/pidgin/libpurple/protocols/jabber/jabber.c 1
/src/pidgin/libpurple/protocols/jabber/xdata.c 1
/work/meson/../../src/glib/glib/gmarkup.c 2
/src/pidgin/libpurple/debug.c 4
/work/meson/../../src/glib/glib/gbase64.c 3
//usr/local/include/glib-2.0/glib/gstring.h 1

Fuzzer: pidgin_utils_fuzzer

Call tree overview

The following is the call tree with color coding for which functions are hit/not hit. This info is based on the coverage achieved of all fuzzers together and not just this specific fuzzer. This should change in the future to be per-fuzzer-basis.

For further technical details on what the call tree overview is, please see the Glossary .

Full calltree

The following link provides a visualisation of the full calltree overlayed with coverage information: full calltree

For futher technical details on how the call tree is made, please see the Glossary .

Fuzz blockers

The followings nodes represent call sites where fuzz blockers occur

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
1367 0 EP call site purple_markup_html_to_xhtml

Functions hit (dynamic analysis based)

Covered functions
0
Functions that are reachable but not covered
355
Reachable functions
355
Percentage of reachable functions covered
0.0%
NB: The sum of covered functions and functions that are reachable but not covered need not be 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 our of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files hit

filename functions hit
/src/pidgin/libpurple/pidgin_utils_fuzzer.c 1
/src/pidgin/libpurple/util.c 14
/work/meson/../../src/glib/glib/gmessages.c 19
/work/meson/../../src/glib/glib/gstrfuncs.c 17
/work/meson/../../src/glib/glib/gprintf.c 5
/ 61
/work/meson/../../src/glib/glib/gtestutils.c 20
/work/meson/../../src/glib/glib/gpattern.c 5
/work/meson/../../src/glib/glib/gmem.c 7
/work/meson/../../src/glib/glib/gutf8.c 8
/work/meson/../../src/glib/glib/gthread-posix.c 18
/work/meson/../../src/glib/glib/gcharset.c 5
/work/meson/../../src/glib/glib/gthread.c 3
/work/meson/../../src/glib/glib/gmem.h 1
/work/meson/../../src/glib/glib/libcharset/localcharset.c 3
/work/meson/../../src/glib/glib/genviron.c 1
/work/meson/../../src/glib/glib/gstring.c 13
/work/meson/../../src/glib/glib/gslice.c 39
/work/meson/../../src/glib/glib/gutils.c 1
/work/meson/../../src/glib/glib/glib-init.c 2
/work/meson/../../src/glib/glib/gmain.c 1
/work/meson/../../src/glib/glib/gutils.h 2
/work/meson/../../src/glib/glib/gutilsprivate.h 1
/work/meson/../../src/glib/glib/gstring.h 1
/work/meson/../../src/glib/glib/gconvert.c 14
/work/meson/../../src/glib/glib/ghash.c 27
/work/meson/../../src/glib/glib/grefcount.c 2
/work/meson/../../src/glib/glib/gquark.c 6
/work/meson/../../src/glib/glib/ggettext.c 4
/work/meson/../../src/glib/glib/gslist.c 8
/work/meson/../../src/glib/glib/gerror.c 10
/work/meson/../../src/glib/glib/garray.c 6
/work/meson/../../src/glib/glib/gbase64.c 2
//usr/local/include/glib-2.0/glib/gstring.h 1
/work/meson/../../src/glib/glib/gunicollate.c 1
/work/meson/../../src/glib/glib/gunidecomp.c 6
/work/meson/../../src/glib/glib/glist.c 5
/work/meson/../../src/glib/glib/gmarkup.c 2
//usr/include/stdlib.h 1
/work/meson/../../src/glib/glib/gdataset.c 10
/work/meson/../../src/glib/glib/gbitlock.c 4

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 reaches a high amount of 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
jabber_plugin_init /src/pidgin/libpurple/protocols/jabber/jabber.c 1 ['struct._PurplePlugin *'] 37 0 87 6 3 2609 0 23525 10031
xmlTextReaderSchemaValidate /src/libxml2/xmlreader.c 2 ['struct._xmlTextReader *', 'char *'] 28 0 12 3 2 1214 0 18655 7988
xmlTextReaderNextTree /src/libxml2/xmlreader.c 1 ['struct._xmlTextReader *'] 51 0 110 24 11 1071 3 16551 5126
match /work/meson/../../src/glib/subprojects/pcre-8.37/pcre_exec.c 7 ['char *', 'char *', 'char *', 'int ', 'struct.match_data *', 'struct.eptrblock *', 'int '] 68 0 34280 6025 2124 8 12 4370 4366
g_regex_match_all /work/meson/../../src/glib/glib/gregex.c 4 ['struct._GRegex *', 'char *', 'int ', 'struct._GMatchInfo **'] 30 0 12 3 2 340 0 3848 2423
purple_core_init /src/pidgin/libpurple/core.c 1 ['char *'] 31 0 133 21 9 2186 0 19061 2276
xmlTextReaderRelaxNGValidate /src/libxml2/xmlreader.c 2 ['struct._xmlTextReader *', 'char *'] 36 0 12 3 2 840 0 12445 1442

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

Functions statically reachable by fuzzers
44.2%
3952/8941
Cyclomatic complexity statically reachable by fuzzers
59.32%
45183 / 76162

All functions overview

The status of all functions in the project will be as follows if you implement fuzzers for these functions

Func name Functions filename Args Function call depth 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