Fuzz introspector

Project overview

High level conclusions

Fuzzers reach 5.882% of all functions. Improvements need to be made
Fuzzers reach 2.823% of cyclomatic complexity. Improvements could be made
Fuzzer ply_reader_fuzzer is blocked: runtime coverage only covers 0.0% of its reachable functions.

Reachability and coverage overview

Functions statically reachable by fuzzers
5.88%
82/1394
Cyclomatic complexity statically reachable by fuzzers
2.82%
201/7118
Functions covered at runtime
0

Fuzzers overview

Fuzzer Fuzzer filename Functions Reached Functions unreached Fuzzer depth Files reached Basic blocks reached Cyclomatic complexity Details
ply_reader_fuzzer /src/pcl/test/fuzz/ply_reader_fuzzer.cpp 82 1312 13 24 233 201 ply_reader_fuzzer.cpp

Fuzzer details

Fuzzer: ply_reader_fuzzer

Call tree

The following is the call tree with color coding for whichfunctions are hit/not hit. This info is based on the coverageachieved of all fuzzers together and not just this specificfuzzer. 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
90 0 EP call site getpid

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
82
Reachable functions
82
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 reached

filename functions hit
/src/pcl/test/fuzz/ply_reader_fuzzer.cpp 1
/src/pcl/common/include/pcl/PCLPointCloud2.h 2
/src/pcl/common/include/pcl/PCLHeader.h 1
/src/pcl/io/include/pcl/io/ply_io.h 3
/src/pcl/io/include/pcl/io/file_io.h 2
/src/pcl/io/include/pcl/io/ply/ply_parser.h 5
//usr/local/include/boost/mpl/aux_/preprocessed/gcc/inherit.hpp 3
//usr/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h 8
//usr/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h 2
//usr/include/eigen3/Eigen/src/Core/MatrixBase.h 2
//usr/include/eigen3/Eigen/src/Core/DenseBase.h 1
//usr/include/eigen3/Eigen/src/Core/util/XprHelper.h 5
//usr/include/eigen3/Eigen/src/Core/util/Macros.h 1
//usr/include/eigen3/Eigen/src/Core/Matrix.h 3
//usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h 7
//usr/include/eigen3/Eigen/src/Core/DenseStorage.h 6
//usr/include/eigen3/Eigen/src/Core/EigenBase.h 2
//usr/include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h 2
//usr/include/eigen3/Eigen/src/Core/AssignEvaluator.h 12
//usr/include/eigen3/Eigen/src/Core/CoreEvaluators.h 6
//usr/include/eigen3/Eigen/src/Core/util/Meta.h 2
//usr/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h 1
/ 5
//usr/include/eigen3/Eigen/src/Geometry/Quaternion.h 1

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
pcl::PLYReader::readHeader(std::__1::basic_string , std::__1::allocator > const&, pcl::PCLPointCloud2&, Eigen::Matrix &, Eigen::Quaternion &, int&, int&, unsigned int&, int) /src/pcl/io/src/ply_io.cpp 9 ['class.pcl::PLYReader *', 'class.std::__1::basic_string *', 'struct.pcl::PCLPointCloud2 *', 'class.Eigen::Matrix *', 'class.Eigen::Quaternion *', 'int *', 'int *', 'int *', 'int '] 13 0 66 6 3 168 0 2659 2510
pcl::PLYWriter::writeBinary(std::__1::basic_string , std::__1::allocator > const&, pcl::PCLPointCloud2 const&, Eigen::Matrix const&, Eigen::Quaternion const&, bool) /src/pcl/io/src/ply_io.cpp 6 ['class.std::bad_alloc *', 'class.std::__1::basic_string *', 'struct.pcl::PCLPointCloud2 *', 'class.Eigen::Matrix *', 'class.Eigen::Quaternion *', 'N/A'] 7 0 1301 236 191 60 0 395 322
pcl::PLYReader::parse(std::__1::basic_string , std::__1::allocator > const&)::$_29::operator()(std::__1::basic_string , std::__1::allocator > const&) const /src/pcl/io/src/ply_io.cpp 2 ['class.anon.454 *', 'class.std::__1::basic_string *'] 13 0 16 3 2 103 0 330 307
pcl::io::ply::ply_parser::scalar_property ::parse(pcl::io::ply::ply_parser&, int, std::__1::basic_istream >&) /src/pcl/io/include/pcl/io/ply/ply_parser.h 4 ['struct.pcl::io::ply::ply_parser::scalar_property.559 *', 'class.pcl::io::ply::ply_parser *', 'int ', 'class.std::__1::basic_istream *'] 11 0 17 3 2 45 0 193 177
pcl::PLYWriter::writeASCII(std::__1::basic_string , std::__1::allocator > const&, pcl::PCLPointCloud2 const&, Eigen::Matrix const&, Eigen::Quaternion const&, int, bool) /src/pcl/io/src/ply_io.cpp 7 ['class.std::bad_alloc *', 'class.std::__1::basic_string *', 'struct.pcl::PCLPointCloud2 *', 'class.Eigen::Matrix *', 'class.Eigen::Quaternion *', 'int ', 'N/A'] 7 0 206 41 32 67 0 373 174
pcl::PLYReader::read(std::__1::basic_string , std::__1::allocator > const&, pcl::PolygonMesh&, int) /src/pcl/io/src/ply_io.cpp 4 ['class.pcl::PLYReader *', 'class.std::__1::basic_string *', 'struct.pcl::PolygonMesh *', 'int '] 18 0 33 3 2 111 0 265 155
pcl::io::savePLYFile(std::__1::basic_string , std::__1::allocator > const&, pcl::PolygonMesh const&, unsigned int) /src/pcl/io/src/ply_io.cpp 3 ['class.std::__1::basic_string *', 'struct.pcl::PolygonMesh *', 'int '] 6 0 642 125 118 22 0 187 131
pcl::io::ply::ply_parser::scalar_property ::parse(pcl::io::ply::ply_parser&, int, std::__1::basic_istream >&) /src/pcl/io/include/pcl/io/ply/ply_parser.h 4 ['struct.pcl::io::ply::ply_parser::scalar_property.559 *', 'class.pcl::io::ply::ply_parser *', 'int ', 'class.std::__1::basic_istream *'] 11 0 17 3 2 45 0 193 127
pcl::io::ply::ply_parser::scalar_property ::parse(pcl::io::ply::ply_parser&, int, std::__1::basic_istream >&) /src/pcl/io/include/pcl/io/ply/ply_parser.h 4 ['struct.pcl::io::ply::ply_parser::scalar_property.559 *', 'class.pcl::io::ply::ply_parser *', 'int ', 'class.std::__1::basic_istream *'] 10 0 17 3 2 32 0 137 84
pcl::io::ply::ply_parser::scalar_property ::parse(pcl::io::ply::ply_parser&, int, std::__1::basic_istream >&) /src/pcl/io/include/pcl/io/ply/ply_parser.h 4 ['struct.pcl::io::ply::ply_parser::scalar_property.559 *', 'class.pcl::io::ply::ply_parser *', 'int ', 'class.std::__1::basic_istream *'] 10 0 17 3 2 32 0 137 82

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

Functions statically reachable by fuzzers
33.86%
472/1394
Cyclomatic complexity statically reachable by fuzzers
59.99%
4270 / 7118

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