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: fuzz_sigimport

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 7 100.%
All colors 7 100

Runtime coverage analysis

Covered functions
552
Functions that are reachable but not covered
0
Reachable functions
7
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/sigimport.c 1

Fuzzer: fuzz_verify_detached

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 10 100.%
All colors 10 100

Runtime coverage analysis

Covered functions
716
Functions that are reachable but not covered
0
Reachable functions
8
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/verify_detached.c 1

Fuzzer: fuzz_keyring_g10

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 1524 74.6%
gold [1:9] 35 1.71%
yellow [10:29] 28 1.37%
greenyellow [30:49] 42 2.05%
lawngreen 50+ 412 20.1%
All colors 2041 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
437 1077 rnp::Key::is_primary() const call site: 01077 __cxa_allocate_exception
294 1515 rnp::SecurityContext::time() const call site: 01515 __dynamic_cast
196 580 parse_seckey(pgp_key_pkt_t&, sexp::sexp_list_t const*) call site: 00580 fprintf
176 815 rnp::Key::Key() call site: 00815 __clang_call_terminate
76 467 parse_protected_seckey(pgp_key_pkt_t&, sexp::sexp_list_t const*, char const*) call site: 00467 fprintf
48 1954 rnp::Key::refresh_data(rnp::SecurityContext const&) call site: 01954 fprintf
43 1007 rnp::Key::operator=(rnp::Key&&) call site: 01007 __dynamic_cast
26 1821 rnp::KeyStore::refresh_subkey_grips(rnp::Key&) call site: 01821 __cxa_begin_catch
15 777 sexp::sexp_list_t::~sexp_list_t() call site: 00777 __cxa_begin_catch
15 1895 rnp::Key::validate_primary(rnp::KeyStore&) call site: 01895 __dynamic_cast
15 1917 rnp::Key::validate_primary(rnp::KeyStore&) call site: 01917 __dynamic_cast
13 1881 rnp::Key::validate_primary(rnp::KeyStore&) call site: 01881

Runtime coverage analysis

Covered functions
386
Functions that are reachable but not covered
674
Reachable functions
1075
Percentage of reachable functions covered
37.3%
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/rnp/src/fuzzing/keyring_g10.cpp 1
/src/rnp/src/lib/sec_profile.cpp 8
/src/rnp/src/lib/sec_profile.hpp 3
/src/rnp/src/lib/crypto/rng.cpp 2
/src/rnp/src/lib/types.h 8
/usr/local/bin/../include/c++/v1/__exception/exception.h 1
/src/rnp/src/lib/crypto/backend_version.cpp 2
/src/rnp/include/rekey/rnp_key_store.h 1
/src/rnp/src/librepgp/stream-common.cpp 16
/src/rnp/src/lib/logging.cpp 1
/src/rnp/src/librekey/key_store_g10.cpp 24
/src/rnp/src/librepgp/stream-common.h 16
/src/rnp/src/lib/../librepgp/stream-key.h 1
/src/rnp/src/librekey/g23_sexp.hpp 4
/src/rnp/src/libsexpp/include/sexpp/ext-key-format.h 6
/src/rnp/src/libsexpp/include/sexpp/sexp.h 29
/src/rnp/src/libsexpp/src/sexp-input.cpp 18
/src/rnp/src/libsexpp/src/sexp-depth-manager.cpp 4
/src/rnp/src/libsexpp/src/ext-key-format.cpp 4
/src/rnp/src/libsexpp/src/sexp-object.cpp 2
/src/rnp/src/libsexpp/src/sexp-error.cpp 2
/src/rnp/src/libsexpp/include/sexpp/sexp-error.h 3
/src/rnp/src/lib/utils.cpp 2
/src/rnp/src/common/str-utils.cpp 1
/src/rnp/src/lib/crypto/dsa.h 5
/src/rnp/src/lib/crypto/mpi.hpp 4
/src/rnp/src/lib/crypto/mpi.cpp 5
/src/rnp/src/lib/key_material.cpp 29
/src/rnp/src/lib/key_material.hpp 9
/src/rnp/src/lib/crypto/mem.cpp 2
/src/rnp/src/lib/crypto/rsa.h 5
/src/rnp/src/lib/crypto/elgamal.h 5
/src/rnp/src/lib/crypto/ec.h 6
/usr/local/bin/../include/c++/v1/stdexcept 1
/src/rnp/src/libsexpp/src/sexp-output.cpp 5
/usr/local/bin/../include/c++/v1/sstream 3
/src/rnp/src/lib/crypto/symmetric_common.cpp 3
/src/rnp/src/lib/crypto/s2k.cpp 5
/src/rnp/src/lib/crypto/hash.cpp 3
/src/rnp/src/lib/crypto/cipher.cpp 2
/src/rnp/src/lib/crypto/cipher_botan.cpp 4
/src/rnp/src/lib/crypto/hash_common.cpp 5
/src/rnp/src/lib/crypto/hash_sha1cd.cpp 2
/src/rnp/src/lib/crypto/hash.hpp 1
/src/rnp/src/lib/crypto/sha1cd/sha1.c 1
/src/rnp/src/librepgp/stream-key.cpp 8
/src/rnp/src/lib/key.hpp 3
/src/rnp/src/lib/fingerprint.cpp 5
/src/rnp/src/lib/rawpacket.hpp 4
/src/rnp/src/lib/signature.hpp 15
/src/rnp/src/lib/fingerprint.hpp 4
/src/rnp/src/lib/key-provider.cpp 8
/src/rnp/src/lib/key-provider.h 3
/src/rnp/src/lib/key.cpp 83
/src/rnp/src/librepgp/stream-packet.cpp 17
/src/rnp/src/lib/rawpacket.cpp 2
/src/rnp/src/lib/utils.h 3
/src/rnp/src/librepgp/stream-packet.h 1
/src/rnp/src/librekey/rnp_key_store.cpp 10
/src/rnp/src/lib/../librepgp/stream-sig.h 1
/src/rnp/src/librepgp/stream-sig.cpp 29
/src/rnp/src/lib/sig_subpacket.hpp 19
/src/rnp/src/lib/crypto/mem.h 1
/src/rnp/src/lib/userid.cpp 4
/src/rnp/src/lib/signature.cpp 4
/src/rnp/src/lib/crypto/signatures.cpp 3
/src/rnp/src/lib/crypto/sm2.cpp 2
/src/rnp/src/lib/crypto/botan_utils.hpp 7
/src/rnp/src/lib/crypto/ec_curves.cpp 1
/src/rnp/src/librepgp/stream-sig.h 1
/src/rnp/src/lib/sig_material.cpp 1
/src/rnp/src/lib/sig_material.hpp 9
/src/rnp/src/lib/crypto/dilithium_exdsa_composite.h 1
/src/rnp/src/lib/crypto/sphincsplus.h 1
/src/rnp/src/lib/sig_subpacket.cpp 1

Fuzzer: fuzz_verify

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 10 100.%
All colors 10 100

Runtime coverage analysis

Covered functions
908
Functions that are reachable but not covered
0
Reachable functions
10
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/verify.c 1

Fuzzer: fuzz_dump

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 10 100.%
All colors 10 100

Runtime coverage analysis

Covered functions
951
Functions that are reachable but not covered
0
Reachable functions
8
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/dump.c 1

Fuzzer: fuzz_keyring_kbx

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 6 100.%
All colors 6 100

Runtime coverage analysis

Covered functions
2915
Functions that are reachable but not covered
0
Reachable functions
6
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/keyring_kbx.c 1

Fuzzer: fuzz_keyring

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 6 100.%
All colors 6 100

Runtime coverage analysis

Covered functions
3578
Functions that are reachable but not covered
0
Reachable functions
6
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/keyring.c 1

Fuzzer: fuzz_keyimport

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 25 100.%
All colors 25 100

Runtime coverage analysis

Covered functions
3626
Functions that are reachable but not covered
0
Reachable functions
7
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/keyimport.c 1

Fuzzer: fuzz_ffi_ops

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 0 0.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 26 100.%
All colors 26 100

Runtime coverage analysis

Covered functions
3718
Functions that are reachable but not covered
0
Reachable functions
17
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/ffi_ops.c 5

Fuzzer: fuzz_encrypt_roundtrip

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 4 6.25%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 60 93.7%
All colors 64 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
2 10 LLVMFuzzerTestOneInput call site: 00010 rnp_input_destroy
1 8 LLVMFuzzerTestOneInput call site: 00008 rnp_ffi_destroy
1 60 encrt_verify_roundtrip call site: 00060 rnp_input_destroy

Runtime coverage analysis

Covered functions
3651
Functions that are reachable but not covered
0
Reachable functions
47
Percentage of reachable functions covered
100.0%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/rnp/src/fuzzing/encrypt_roundtrip.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, 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
rnp::KeyStore::load(rnp::KeyProviderconst*) /src/rnp/src/librekey/rnp_key_store.cpp 2 ['N/A', 'N/A'] 16 0 182 39 4 1524 0 4499 1530
rnp::KeygenParams::generate(rnp::BindingParams&,rnp::Key&,rnp::Key&,rnp::Key&,rnp::Key&,pgp_password_provider_tconst&,rnp::KeyFormat) /src/rnp/src/lib/keygen.cpp 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'int'] 15 0 302 76 72 1436 0 4470 894
rnp::KeyStore::write() /src/rnp/src/librekey/rnp_key_store.cpp 1 ['N/A'] 8 0 384 86 83 205 0 737 461
pgp::DilithiumEccKeyMaterial::generate(rnp::SecurityContext&,pgp::KeyParamsconst&) /src/rnp/src/lib/key_material.cpp 3 ['N/A', 'N/A', 'N/A'] 7 0 42 8 4 182 0 483 415
rnp::KeygenParams::generate(rnp::CertParams&,rnp::Key&,rnp::Key&,rnp::KeyFormat) /src/rnp/src/lib/keygen.cpp 5 ['N/A', 'N/A', 'N/A', 'N/A', 'int'] 15 0 237 58 47 1450 0 4391 270
pgp::MlkemEcdhKeyMaterial::decrypt(rnp::SecurityContext&,std::__1::vector >&,pgp::EncMaterialconst&)const /src/rnp/src/lib/key_material.cpp 4 ['N/A', 'N/A', 'N/A', 'N/A'] 7 0 45 9 4 129 0 369 236
pgp::DilithiumEccKeyMaterial::sign(rnp::SecurityContext&,pgp::SigMaterial&,std::__1::vector >const&)const /src/rnp/src/lib/key_material.cpp 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 31 6 3 84 0 296 213

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

Functions statically reachable by fuzzers
46.0%
995 / 2180
Cyclomatic complexity statically reachable by fuzzers
51.0%
6887 / 13522

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

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/rnp/src/fuzzing/sigimport.c

Dictionary

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


/src/rnp/src/fuzzing/verify_detached.c

Dictionary

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


/src/rnp/src/fuzzing/keyring_g10.cpp

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=['rnp::Key::is_primary() const', 'rnp::SecurityContext::time() const', 'parse_seckey(pgp_key_pkt_t&, sexp::sexp_list_t const*)', 'rnp::Key::Key()', 'parse_protected_seckey(pgp_key_pkt_t&, sexp::sexp_list_t const*, char const*)', 'rnp::Key::refresh_data(rnp::SecurityContext const&)', 'rnp::Key::operator=(rnp::Key&&)', 'rnp::KeyStore::refresh_subkey_grips(rnp::Key&)', 'sexp::sexp_list_t::~sexp_list_t()', 'rnp::Key::validate_primary(rnp::KeyStore&)']

/src/rnp/src/fuzzing/verify.c

Dictionary

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


/src/rnp/src/fuzzing/dump.c

Dictionary

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


/src/rnp/src/fuzzing/keyring_kbx.c

Dictionary

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


/src/rnp/src/fuzzing/keyring.c

Dictionary

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


/src/rnp/src/fuzzing/keyimport.c

Dictionary

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


/src/rnp/src/fuzzing/ffi_ops.c

Dictionary

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


/src/rnp/src/fuzzing/encrypt_roundtrip.c

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=['LLVMFuzzerTestOneInput', 'encrt_verify_roundtrip']

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
Botan::MessageAuthenticationCode::create(std::__1::basic_string_view >,std::__1::basic_string_view >) 44 10 22.72%
nlohmann::json_abi_v3_11_3::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::__1::vector >,void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) 60 13 21.66%
nlohmann::json_abi_v3_11_3::detail::serializer ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::__1::vector >,void>>::dump(nlohmann::json_abi_v3_11_3::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::__1::vector >,void>const&,bool,bool,unsignedint,unsignedint) 215 105 48.83%
parse_protected_seckey(pgp_key_pkt_t&,sexp::sexp_list_tconst*,charconst*) 145 70 48.27% ['fuzz_keyring_g10']
mem_dest_own_memory(pgp_dest_t*) 32 15 46.87% ['fuzz_keyring_kbx', 'fuzz_keyring_g10']
nlohmann::json_abi_v3_11_3::detail::iter_impl ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::__1::vector >,void>>::set_begin() 33 10 30.30%
rnp::DumpContextJson::dump_key(nlohmann::json_abi_v3_11_3::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::__1::vector >,void>&) 66 31 46.96%
rnp::DumpContextJson::dump_one_pass(nlohmann::json_abi_v3_11_3::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::__1::vector >,void>&) 38 20 52.63%
Botan::OID_Map::lookup_static_oid(Botan::OIDconst&) 693 21 3.030%
Botan::OID_Map::lookup_static_oid_name(std::__1::basic_string_view >) 693 23 3.318%
botan_ffi_supports_api 48 15 31.25% ['fuzz_keyring_kbx', 'fuzz_ffi_ops', 'fuzz_keyring', 'fuzz_keyimport']
Botan_FFI::(anonymousnamespace)::ffi_map_error_type(Botan::ErrorType) 46 9 19.56%
Botan::BigInt::from_radix_digits(std::__1::basic_string_view >,unsignedlong) 42 15 35.71%
Botan::SignaturePaddingScheme::create(std::__1::basic_string_view >) 32 9 28.12%
Botan::EC_Group::EC_group_info(Botan::OIDconst&) 283 103 36.39%
Botan::OS2ECP(unsignedcharconst*,unsignedlong,Botan::BigIntconst&,Botan::BigIntconst&,Botan::BigIntconst&) 39 15 38.46%
decrypt_secret_key(pgp_key_pkt_t*,charconst*) 93 7 7.526% ['fuzz_keyimport', 'fuzz_encrypt_roundtrip', 'fuzz_keyring', 'fuzz_ffi_ops', 'fuzz_keyring_kbx']
Botan::EC_AffinePoint::deserialize(Botan::EC_Groupconst&,std::__1::span ) 32 7 21.87%
Botan::(anonymousnamespace)::set_and_hash_from_name(std::__1::basic_string_view >) 96 36 37.5%
Botan::Cipher_Mode::create(std::__1::basic_string_view >,Botan::Cipher_Dir,std::__1::basic_string_view >) 78 25 32.05% ['fuzz_encrypt_roundtrip', 'fuzz_ffi_ops', 'fuzz_keyring_g10']
Botan::(anonymousnamespace)::extract_key(unsignedchar*,unsignedlong,std::__1::vector >const&,unsignedlong,unsignedlong) 44 19 43.18%
Botan::parse_algorithm_name(std::__1::basic_string_view >) 45 4 8.888%
Botan::KDF::create(std::__1::basic_string_view >,std::__1::basic_string_view >) 50 8 16.0%
rnp::KeySearch::create(std::__1::basic_string ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&) 41 12 29.26% ['fuzz_encrypt_roundtrip']
rnp_get_security_rule 47 23 48.93%
get_feature_sec_value(rnp_ffi_st*,charconst*,charconst*,rnp::FeatureType&,int&) 37 10 27.02%
rnp_sign_src(rnp_ctx_t&,pgp_source_t&,pgp_dest_t&) 59 21 35.59%
init_streamed_packet(pgp_dest_packet_param_t&,pgp_dest_t&) 35 13 37.14%
init_signed_dst(rnp_ctx_t&,pgp_dest_t&,pgp_dest_t&) 62 30 48.38%

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/rnp/src/fuzzing/encrypt_roundtrip.c ['fuzz_encrypt_roundtrip'] ['fuzz_encrypt_roundtrip']
/src/rnp/src/lib/crypto/sha1cd/sha1.c ['fuzz_keyring_g10'] []
/src/rnp/src/librepgp/stream-common.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/dilithium_exdsa_composite.h ['fuzz_keyring_g10'] []
/src/rnp/src/librekey/rnp_key_store.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/fingerprint.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/dilithium_common.cpp [] []
/src/rnp/src/fuzzing/keyring.c ['fuzz_keyring'] ['fuzz_keyring']
/src/rnp/src/lib/crypto/symmetric_common.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/crypto/ecdh.h [] []
/src/rnp/src/lib/crypto/kyber_ecdh_composite.h [] []
/src/rnp/include/rekey/rnp_key_store.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/fuzzing/keyring_g10.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/librepgp/stream-packet.h ['fuzz_keyring_g10'] []
/src/rnp/src/lib/pass-provider.h [] []
/src/rnp/src/libsexpp/src/sexp-char-defs.cpp [] []
/src/rnp/src/lib/crypto/hash_common.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/symmetric.cpp [] []
/src/rnp/src/lib/key_material.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/librepgp/stream-sig.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/backend_version.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/usr/include/botan-3/botan/secmem.h [] []
/src/rnp/src/lib/key-provider.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/userid.hpp [] []
/src/rnp/src/lib/../librepgp/stream-packet.h [] []
/src/rnp/src/lib/pass-provider.cpp [] []
/usr/local/bin/../include/c++/v1/sstream ['fuzz_keyring_g10'] []
/src/rnp/src/librekey/key_store_g10.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/logging.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/../librepgp/stream-key.h ['fuzz_keyring_g10'] []
/src/rnp/src/lib/keygen.cpp [] []
/src/rnp/src/lib/crypto/mpi.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/key.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/fuzzing/keyimport.c ['fuzz_keyimport'] ['fuzz_keyimport']
/src/rnp/src/libsexpp/include/sexpp/sexp-error.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/key_material.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/rsa.cpp [] []
/src/rnp/src/lib/keygen.hpp [] []
/src/rnp/src/lib/crypto/elgamal.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/hash_sha1cd.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/sig_material.hpp ['fuzz_keyring_g10'] []
/src/rnp/src/librepgp/stream-armor.h [] []
/src/rnp/src/librepgp/stream-armor.cpp [] []
/src/rnp/src/lib/crypto/ecdh.cpp [] []
/src/rnp/src/libsexpp/include/sexpp/ext-key-format.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/libsexpp/src/sexp-output.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/libsexpp/include/sexpp/sexp.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/fuzzing/verify_detached.c ['fuzz_verify_detached'] ['fuzz_verify_detached']
/src/rnp/src/lib/crypto/hash.hpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/sec_profile.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/exdsa_ecdhkem.h [] []
/src/rnp/src/libsexpp/src/ext-key-format.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/eddsa.cpp [] []
/src/rnp/src/lib/crypto/hkdf.hpp [] []
/src/rnp/src/lib/crypto/sha1cd/ubc_check.c [] []
/src/rnp/src/lib/crypto/kem_combiner.hpp [] []
/src/rnp/src/fuzzing/sigimport.c ['fuzz_sigimport'] ['fuzz_sigimport']
/usr/include/botan-3/botan/sym_algo.h [] []
/src/rnp/src/common/time-utils.cpp [] []
/src/rnp/src/lib/crypto/hash.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/crypto/mem.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/rawpacket.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/usr/local/bin/../include/c++/v1/stdexcept ['fuzz_keyring_g10'] []
/src/rnp/src/librepgp/stream-sig.h ['fuzz_keyring_g10'] []
/src/rnp/src/fuzzing/dump.c ['fuzz_dump'] ['fuzz_dump']
/src/rnp/src/lib/crypto/kyber_common.cpp [] []
/src/rnp/src/fuzzing/ffi_ops.c ['fuzz_ffi_ops'] ['fuzz_ffi_ops']
/src/rnp/src/lib/crypto/sm2.h [] []
/src/rnp/src/lib/utils.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/fuzzing/verify.c ['fuzz_verify'] ['fuzz_verify']
/src/rnp/src/lib/crypto/sphincsplus.h ['fuzz_keyring_g10'] []
/src/rnp/src/lib/crypto/secure_bytes.cpp [] []
/src/rnp/src/lib/crypto/exdsa_ecdhkem.cpp [] []
/src/rnp/src/lib/crypto/kem_combiner.cpp [] []
/src/rnp/src/librepgp/stream-key.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/kyber.cpp [] []
/src/rnp/src/libsexpp/src/sexp-input.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/librekey/g23_sexp.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/botan_utils.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/signature.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/common/file-utils.cpp [] []
/src/rnp/src/lib/crypto/sm2.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/ec.cpp [] []
/src/rnp/src/lib/crypto/kyber_ecdh_composite.cpp [] []
/src/rnp/src/lib/crypto/sphincsplus.cpp [] []
/src/rnp/src/lib/utils.h ['fuzz_keyring_g10'] []
/usr/include/botan-3/botan/cipher_mode.h [] []
/src/rnp/src/lib/crypto/ecdh_utils.cpp [] []
/src/rnp/src/lib/fingerprint.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/libsexpp/src/sexp-depth-manager.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/librekey/key_store_kbx.cpp [] []
/src/rnp/src/libsexpp/src/sexp-simple-string.cpp [] []
/src/rnp/src/lib/crypto/ecdsa.cpp [] []
/src/rnp/src/lib/crypto/rng.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/key-provider.h ['fuzz_keyring_g10'] []
/usr/local/bin/../include/c++/v1/string [] []
/src/rnp/src/lib/crypto/hkdf_botan.cpp [] []
/src/rnp/src/lib/types.h ['fuzz_keyring_g10'] []
/src/rnp/src/lib/key.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/enc_material.cpp [] []
/src/rnp/src/lib/sec_profile.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/dsa.cpp [] []
/src/rnp/src/lib/crypto/cipher.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/elgamal.cpp [] []
/src/rnp/src/librepgp/stream-key.h [] []
/src/rnp/src/lib/../librepgp/stream-common.h [] ['fuzz_keyring_g10']
/src/rnp/src/lib/sig_subpacket.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/dilithium.h [] []
/src/rnp/src/lib/rawpacket.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/ec_curves.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/userid.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/crypto/ed25519_ed448.cpp [] []
/src/rnp/src/lib/crypto/s2k.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/sig_subpacket.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/dilithium_exdsa_composite.cpp [] []
/src/rnp/src/lib/enc_material.hpp [] []
/src/rnp/src/lib/crypto/secure_bytes.h [] []
/src/rnp/src/lib/crypto/ec.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/x25519_x448.cpp [] []
/src/rnp/src/lib/crypto/hkdf.cpp [] []
/src/rnp/src/fuzzing/keyring_kbx.c ['fuzz_keyring_kbx'] ['fuzz_keyring_kbx']
/src/rnp/src/lib/signature.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/usr/local/bin/../include/c++/v1/__iterator/move_iterator.h [] []
/src/rnp/src/lib/crypto/dsa.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/dilithium.cpp [] []
/src/rnp/src/librepgp/stream-common.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/libsexpp/src/sexp-object.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/librepgp/stream-packet.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/mpi.hpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/usr/include/botan-3/botan/aead.h [] []
/src/rnp/src/lib/crypto/kyber.h [] []
/src/rnp/src/librekey/key_store_pgp.cpp [] []
/src/rnp/src/lib/crypto/dsa_common.cpp [] []
/src/rnp/src/librekey/kbx_blob.hpp [] []
/src/rnp/src/common/str-utils.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/libsexpp/src/sexp-error.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/usr/local/bin/../include/c++/v1/__exception/exception.h ['fuzz_keyring_g10'] []
/src/rnp/src/lib/sig_material.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/crypto/mem.cpp ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/crypto/signatures.cpp ['fuzz_keyring_g10'] []
/src/rnp/src/lib/crypto/rsa.h ['fuzz_keyring_g10'] ['fuzz_keyring_g10']
/src/rnp/src/lib/../librepgp/stream-sig.h ['fuzz_keyring_g10'] []
/src/rnp/src/lib/crypto/cipher_botan.cpp ['fuzz_keyring_g10'] []

Directories in report

Directory
/usr/local/bin/../include/c++/v1/__exception/
/src/rnp/src/librekey/
/src/rnp/src/libsexpp/src/
/src/rnp/src/common/
/usr/local/bin/../include/c++/v1/__iterator/
/src/rnp/src/fuzzing/
/src/rnp/src/lib/
/src/rnp/include/rekey/
/usr/include/botan-3/botan/
/src/rnp/src/lib/../librepgp/
/src/rnp/src/libsexpp/include/sexpp/
/usr/local/bin/../include/c++/v1/
/src/rnp/src/lib/crypto/
/src/rnp/src/lib/crypto/sha1cd/
/src/rnp/src/librepgp/