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

Fuzzer details

Fuzzer: 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 426 34.1%
gold [1:9] 5 0.40%
yellow [10:29] 6 0.48%
greenyellow [30:49] 4 0.32%
lawngreen 50+ 806 64.6%
All colors 1247 100

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
6207 6207 6 :

['HunspellImpl::generate(std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::operator=[abi:v180000](std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&&)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::empty[abi:v180000]() const', 'HunspellImpl::generate(std::__1::basic_string , std::__1::allocator > const&, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&)', 'HunspellImpl::get_xml_list(std::__1::basic_string , std::__1::allocator > const&, unsigned long, char const*)', 'uniqlist(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&)']

6207 6295 HunspellImpl::spellml(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1936
2662 2662 1 :

['HunspellImpl::stem(std::__1::basic_string , std::__1::allocator > const&)']

2662 2706 HunspellImpl::spellml(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1932
2656 2665 14 :

['std::__1::basic_string , std::__1::allocator >::append(char const*)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::begin[abi:v180000]()', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::end[abi:v180000]()', 'HunspellImpl::analyze(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::push_back[abi:v180000](std::__1::basic_string , std::__1::allocator > const&)', 'mystrrep(std::__1::basic_string , std::__1::allocator >&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'bool std::__1::operator!=[abi:v180000] , std::__1::allocator >*>(std::__1::__wrap_iter , std::__1::allocator >*> const&, std::__1::__wrap_iter , std::__1::allocator >*> const&)', 'std::__1::__wrap_iter , std::__1::allocator >*>::operator++[abi:v180000]()', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::clear[abi:v180000]()', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:v180000]()', 'std::__1::basic_string , std::__1::allocator >::append[abi:v180000](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::basic_string(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::__wrap_iter , std::__1::allocator >*>::operator*[abi:v180000]() const', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v180000ILi0EEEPKc']

2656 2709 HunspellImpl::spellml(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1909
0 9 3 :

['reverseword_utf(std::__1::basic_string , std::__1::allocator >&)', 'std::__1::basic_string , std::__1::allocator >::assign(char const*)', 'reverseword(std::__1::basic_string , std::__1::allocator >&)']

0 9 HunspellImpl::checkword(std::__1::basic_string ,std::__1::allocator >const&,int*,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:884
0 9 3 :

['reverseword_utf(std::__1::basic_string , std::__1::allocator >&)', 'std::__1::basic_string , std::__1::allocator >::assign(char const*)', 'reverseword(std::__1::basic_string , std::__1::allocator >&)']

0 9 HunspellImpl::checkword(std::__1::basic_string ,std::__1::allocator >const&,int*,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:928
0 0 None 65 67 FileMgr::FileMgr(charconst*,charconst*) call site: 00000 /src/hunspell/src/hunspell/filemgr.cxx:86
0 0 None 38 30193 HunspellImpl::suggest_internal(std::__1::basic_string ,std::__1::allocator >const&,std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,bool&,unsignedlong&,int&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1100
0 0 None 10 1764 SuggestMgr::ngsuggest(std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,charconst*,std::__1::vector >const&,int) call site: 00000 /src/hunspell/src/hunspell/suggestmgr.cxx:1550
0 0 None 8 634 HashMgr::load_config(charconst*,charconst*) call site: 00000 /src/hunspell/src/hunspell/hashmgr.cxx:958
0 0 None 8 177 HashMgr::add_word(std::__1::basic_string ,std::__1::allocator >const&,int,unsignedshort*,int,std::__1::basic_string ,std::__1::allocator >const*,bool,int) call site: 00000 /src/hunspell/src/hunspell/hashmgr.cxx:225
0 0 None 6 6 FileMgr::FileMgr(charconst*,charconst*) call site: 00000 /src/hunspell/src/hunspell/filemgr.cxx:89
0 0 None 4 135 HashMgr::add_word(std::__1::basic_string ,std::__1::allocator >const&,int,unsignedshort*,int,std::__1::basic_string ,std::__1::allocator >const*,bool,int) call site: 00000 /src/hunspell/src/hunspell/hashmgr.cxx:332

Runtime coverage analysis

Covered functions
292
Functions that are reachable but not covered
99
Reachable functions
485
Percentage of reachable functions covered
79.59%
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/hunspell/./src/tools/fuzzer.cxx 1
/src/hunspell/src/hunspell/hunspell.cxx 33
/src/hunspell/src/hunspell/affixmgr.cxx 54
/src/hunspell/src/hunspell/replist.cxx 3
/src/hunspell/src/hunspell/csutil.cxx 40
/src/hunspell/src/hunspell/./atypes.hxx 1
/src/hunspell/src/hunspell/./w_char.hxx 2
/src/hunspell/src/hunspell/hashmgr.cxx 14
/src/hunspell/src/hunspell/./affentry.hxx 22
/src/hunspell/src/hunspell/affentry.cxx 14
/src/hunspell/src/hunspell/suggestmgr.cxx 43
/usr/local/bin/../include/c++/v1/stdlib.h 1
/src/hunspell/src/hunspell/./csutil.hxx 4
/src/hunspell/src/hunspell/phonet.cxx 3

Fuzzer: affdicfuzzer

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 453 24.4%
gold [1:9] 47 2.53%
yellow [10:29] 45 2.42%
greenyellow [30:49] 24 1.29%
lawngreen 50+ 1286 69.3%
All colors 1855 100

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
6207 6207 6 :

['HunspellImpl::generate(std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::operator=[abi:v180000](std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&&)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::empty[abi:v180000]() const', 'HunspellImpl::generate(std::__1::basic_string , std::__1::allocator > const&, std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > > const&)', 'HunspellImpl::get_xml_list(std::__1::basic_string , std::__1::allocator > const&, unsigned long, char const*)', 'uniqlist(std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >&)']

6207 6295 HunspellImpl::spellml(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1936
2662 2662 1 :

['HunspellImpl::stem(std::__1::basic_string , std::__1::allocator > const&)']

2662 2706 HunspellImpl::spellml(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1932
2656 2665 14 :

['std::__1::basic_string , std::__1::allocator >::append(char const*)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::begin[abi:v180000]()', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::end[abi:v180000]()', 'HunspellImpl::analyze(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::push_back[abi:v180000](std::__1::basic_string , std::__1::allocator > const&)', 'mystrrep(std::__1::basic_string , std::__1::allocator >&, std::__1::basic_string , std::__1::allocator > const&, std::__1::basic_string , std::__1::allocator > const&)', 'bool std::__1::operator!=[abi:v180000] , std::__1::allocator >*>(std::__1::__wrap_iter , std::__1::allocator >*> const&, std::__1::__wrap_iter , std::__1::allocator >*> const&)', 'std::__1::__wrap_iter , std::__1::allocator >*>::operator++[abi:v180000]()', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::clear[abi:v180000]()', 'std::__1::basic_string , std::__1::allocator >::basic_string[abi:v180000]()', 'std::__1::basic_string , std::__1::allocator >::append[abi:v180000](std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_string , std::__1::allocator >::basic_string(std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::__wrap_iter , std::__1::allocator >*>::operator*[abi:v180000]() const', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v180000ILi0EEEPKc']

2656 2709 HunspellImpl::spellml(std::__1::basic_string ,std::__1::allocator >const&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1909
0 9 3 :

['reverseword_utf(std::__1::basic_string , std::__1::allocator >&)', 'std::__1::basic_string , std::__1::allocator >::assign(char const*)', 'reverseword(std::__1::basic_string , std::__1::allocator >&)']

0 9 HunspellImpl::checkword(std::__1::basic_string ,std::__1::allocator >const&,int*,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:884
0 9 3 :

['reverseword_utf(std::__1::basic_string , std::__1::allocator >&)', 'std::__1::basic_string , std::__1::allocator >::assign(char const*)', 'reverseword(std::__1::basic_string , std::__1::allocator >&)']

0 9 HunspellImpl::checkword(std::__1::basic_string ,std::__1::allocator >const&,int*,std::__1::basic_string ,std::__1::allocator >*) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:928
0 0 None 65 67 FileMgr::FileMgr(charconst*,charconst*) call site: 00000 /src/hunspell/src/hunspell/filemgr.cxx:86
0 0 None 38 30193 HunspellImpl::suggest_internal(std::__1::basic_string ,std::__1::allocator >const&,std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,bool&,unsignedlong&,int&) call site: 00000 /src/hunspell/src/hunspell/hunspell.cxx:1100
0 0 None 10 1764 SuggestMgr::ngsuggest(std::__1::vector ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>&,charconst*,std::__1::vector >const&,int) call site: 00000 /src/hunspell/src/hunspell/suggestmgr.cxx:1550
0 0 None 8 634 HashMgr::load_config(charconst*,charconst*) call site: 00000 /src/hunspell/src/hunspell/hashmgr.cxx:958
0 0 None 8 177 HashMgr::add_word(std::__1::basic_string ,std::__1::allocator >const&,int,unsignedshort*,int,std::__1::basic_string ,std::__1::allocator >const*,bool,int) call site: 00000 /src/hunspell/src/hunspell/hashmgr.cxx:225
0 0 None 6 6 FileMgr::FileMgr(charconst*,charconst*) call site: 00000 /src/hunspell/src/hunspell/filemgr.cxx:89
0 0 None 4 135 HashMgr::add_word(std::__1::basic_string ,std::__1::allocator >const&,int,unsignedshort*,int,std::__1::basic_string ,std::__1::allocator >const*,bool,int) call site: 00000 /src/hunspell/src/hunspell/hashmgr.cxx:332

Runtime coverage analysis

Covered functions
292
Functions that are reachable but not covered
128
Reachable functions
689
Percentage of reachable functions covered
81.42%
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/hunspell/./src/tools/affdicfuzzer.cxx 1
/src/hunspell/src/hunspell/hunspell.cxx 37
/src/hunspell/src/hunspell/hashmgr.cxx 28
/src/hunspell/src/hunspell/filemgr.cxx 5
/src/hunspell/src/hunspell/csutil.cxx 44
/src/hunspell/src/hunspell/hunzip.cxx 7
/src/hunspell/src/hunspell/./atypes.hxx 1
/src/hunspell/src/hunspell/./w_char.hxx 4
/src/hunspell/src/hunspell/./csutil.hxx 4
/src/hunspell/src/hunspell/affixmgr.cxx 96
/src/hunspell/src/hunspell/./affentry.hxx 30
/src/hunspell/src/hunspell/replist.cxx 7
/src/hunspell/src/hunspell/./phonet.hxx 2
/src/hunspell/src/hunspell/phonet.cxx 4
/src/hunspell/src/hunspell/affentry.cxx 17
/src/hunspell/src/hunspell/./baseaffix.hxx 1
/src/hunspell/src/hunspell/suggestmgr.cxx 45
/usr/local/bin/../include/c++/v1/stdlib.h 1

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

/src/hunspell/./src/tools/fuzzer.cxx

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['HashMgr::encode_flag(unsigned short) const', 'HunspellImpl::spellml(std::__1::basic_string, std::__1::allocator > const&)', 'SfxEntry::add(char const*, unsigned long)', 'HENTRY_FIND(hentry*, char const*)', 'HunspellImpl::get_xml_par(std::__1::basic_string, std::__1::allocator > const&, unsigned long)', 'HunspellImpl::spellml(std::__1::basic_string, std::__1::allocator > const&)', 'HunspellImpl::mkinitcap(std::__1::basic_string, std::__1::allocator >&)', 'HashMgr::add_hidden_capitalized_word(std::__1::basic_string, std::__1::allocator > const&, int, unsigned short*, int, std::__1::basic_string, std::__1::allocator > const*, int)', 'HunspellImpl::spellml(std::__1::basic_string, std::__1::allocator > const&)', 'HashMgr::add_word(std::__1::basic_string, std::__1::allocator > const&, int, unsigned short*, int, std::__1::basic_string, std::__1::allocator > const*, bool, int)']

/src/hunspell/./src/tools/affdicfuzzer.cxx

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['HunspellImpl::get_xml_par(std::__1::basic_string, std::__1::allocator > const&, unsigned long)', 'HunspellImpl::spellml(std::__1::basic_string, std::__1::allocator > const&)', 'SfxEntry::add(char const*, unsigned long)', 'HunspellImpl::spellml(std::__1::basic_string, std::__1::allocator > const&)', 'FileMgr::FileMgr(char const*, char const*)', 'HunspellImpl::mkinitcap(std::__1::basic_string, std::__1::allocator >&)', 'FileMgr::getline(std::__1::basic_string, std::__1::allocator >&)', 'FileMgr::FileMgr(char const*, char const*)', 'HashMgr::add_word(std::__1::basic_string, std::__1::allocator > const&, int, unsigned short*, int, std::__1::basic_string, std::__1::allocator > const*, bool, int)', 'HunspellImpl::spellml(std::__1::basic_string, std::__1::allocator > const&)']

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
/src/hunspell/src/hunspell/./w_char.hxx ['fuzzer', 'affdicfuzzer'] []
/usr/local/bin/../include/c++/v1/stdlib.h ['fuzzer', 'affdicfuzzer'] []
/src/hunspell/src/hunspell/hunzip.cxx ['affdicfuzzer'] []
/src/hunspell/src/hunspell/filemgr.cxx ['affdicfuzzer'] ['affdicfuzzer']
/src/hunspell/src/hunspell/phonet.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']
/src/hunspell/src/hunspell/affixmgr.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']
/src/hunspell/src/hunspell/./phonet.hxx ['affdicfuzzer'] []
/src/hunspell/src/hunspell/./csutil.hxx ['fuzzer', 'affdicfuzzer'] []
/src/hunspell/src/hunspell/./atypes.hxx ['fuzzer', 'affdicfuzzer'] []
/src/hunspell/src/hunspell/suggestmgr.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']
/src/hunspell/./src/tools/affdicfuzzer.cxx ['affdicfuzzer'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/hunspell/src/hunspell/csutil.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']
/src/hunspell/src/hunspell/hunspell.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']
/usr/local/bin/../include/c++/v1/__fwd/sstream.h [] []
/src/hunspell/src/hunspell/./affentry.hxx ['fuzzer', 'affdicfuzzer'] []
/src/hunspell/src/hunspell/./baseaffix.hxx ['affdicfuzzer'] []
/src/hunspell/src/hunspell/affentry.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']
/src/hunspell/src/hunspell/replist.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']
/src/hunspell/src/tools/fuzzer.cxx [] []
/src/hunspell/./src/tools/fuzzer.cxx ['fuzzer'] []
/src/hunspell/src/hunspell/hashmgr.cxx ['fuzzer', 'affdicfuzzer'] ['fuzzer', 'affdicfuzzer']

Directories in report

Directory
/usr/local/bin/../include/c++/v1/
/usr/local/bin/../include/c++/v1/__fwd/
/src/hunspell/src/hunspell/./
/src/hunspell/./src/tools/
/src/hunspell/src/hunspell/
/src/hunspell/src/tools/