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: geojson_import_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: twkb_import_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: wkt_import_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: wkb_import_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: raster_deserialize_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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
rt_raster_fully_within_distance /src/postgis/raster/rt_core/rt_spatial_relationship.c 6 ['N/A', 'int', 'N/A', 'int', 'double', 'N/A'] 13 0 216 42 17 452 0 2590 1685
lwgeom_mindistance3d /src/postgis/liblwgeom/measures3d.c 2 ['N/A', 'N/A'] 19 0 18 3 2 335 0 2166 554
gserialized_cmp /src/postgis/liblwgeom/gserialized.c 2 ['N/A', 'N/A'] 11 0 359 50 22 146 0 819 371
lwgeom_to_ewkt /src/postgis/liblwgeom/lwgeom.c 1 ['N/A'] 13 0 34 6 3 77 0 370 324
rt_raster_gdal_rasterize /src/postgis/raster/rt_core/rt_raster.c 20 ['N/A', 'int', 'N/A', 'int', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 9 0 2429 379 147 137 0 822 308
lwgeom_distance_spheroid /src/postgis/liblwgeom/lwgeodetic.c 4 ['N/A', 'N/A', 'N/A', 'double'] 10 0 833 135 49 75 1 509 293
rt_raster_gdal_contour /src/postgis/raster/rt_core/rt_gdal.c 11 ['N/A', 'int', 'int', 'N/A', 'double', 'double', 'int', 'N/A', 'int', 'N/A', 'N/A'] 10 0 412 44 18 307 0 1590 205
lwgeom_subdivide_recursive /src/postgis/liblwgeom/lwgeom.c 6 ['N/A', 'char', 'int', 'int', 'N/A', 'double'] 12 0 716 105 39 197 3 1222 167
rt_raster_intersects /src/postgis/raster/rt_core/rt_spatial_relationship.c 5 ['N/A', 'int', 'N/A', 'int', 'N/A'] 10 0 933 162 61 225 0 1370 157
lwgeom_covers_lwgeom_sphere /src/postgis/liblwgeom/lwgeodetic.c 2 ['N/A', 'N/A'] 12 0 393 77 28 87 1 518 127

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

Functions statically reachable by fuzzers
56.0%
828 / 1483
Cyclomatic complexity statically reachable by fuzzers
63.0%
5843 / 9314

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

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/postgis/liblwgeom/lwpsurface.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwtin.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwstroke.c [] []
/src/postgis/liblwgeom/lwhomogenize.c [] []
/src/postgis/liblwgeom/lwline.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/gserialized1.c [] []
/src/postgis/liblwgeom/lwgeom_geos_clean.c [] []
/src/postgis/raster/rt_core/rt_gdal.c [] []
/src/postgis/liblwgeom/lwgeodetic.c ['geojson_import_fuzzer'] []
/src/postgis/fuzzers/geojson_import_fuzzer.cpp ['geojson_import_fuzzer'] []
/src/postgis/liblwgeom/lwin_wkt_parse.c ['wkt_import_fuzzer'] []
/src/postgis/fuzzers/proj_stub.h [] []
/src/postgis/liblwgeom/lwmpoint.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/deps/ryu/./../ryu/common.h [] []
/src/postgis/liblwgeom/lwprint.c [] []
/src/postgis/liblwgeom/lwout_wkt.c [] []
/src/postgis/fuzzers/geos_stub.h [] []
/src/postgis/liblwgeom/lwcurvepoly.c ['wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/fuzzers/raster_deserialize_fuzzer.c ['raster_deserialize_fuzzer'] []
/src/postgis/liblwgeom/lwgeom.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lookup3.c [] []
/src/postgis/liblwgeom/lwcircstring.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/raster/rt_core/rt_band.c ['raster_deserialize_fuzzer'] []
/src/postgis/fuzzers/twkb_import_fuzzer.cpp ['twkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwin_twkb.c ['twkb_import_fuzzer'] []
/src/postgis/fuzzers/liblwgeom_fuzzer.hpp ['twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/gserialized.c [] []
/src/postgis/liblwgeom/varint.c ['twkb_import_fuzzer'] []
/src/postgis/raster/rt_core/../../liblwgeom/stringbuffer.h [] []
/src/postgis/liblwgeom/lwutil.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/deps/ryu/./../ryu/d2s_intrinsics.h [] []
/src/postgis/fuzzers/wkt_import_fuzzer.cpp ['wkt_import_fuzzer'] []
/src/postgis/liblwgeom/lwin_wkt.c ['wkt_import_fuzzer'] []
/src/postgis/raster/rt_core/rt_util.c ['raster_deserialize_fuzzer'] []
/src/postgis/liblwgeom/lwin_wkb.c ['wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwgeom_geos_split.c [] []
/src/postgis/raster/rt_core/rt_raster.c ['raster_deserialize_fuzzer'] []
/src/postgis/liblwgeom/lwcompound.c ['wkt_import_fuzzer'] []
/src/postgis/liblwgeom/gserialized2.c [] []
/src/postgis/liblwgeom/lwmline.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/gbox.c ['geojson_import_fuzzer', 'twkb_import_fuzzer'] []
/src/postgis/raster/rt_core/rt_geometry.c [] []
/src/postgis/liblwgeom/optionlist.c [] []
/src/postgis/liblwgeom/lwin_geojson.c ['geojson_import_fuzzer'] []
/src/postgis/deps/ryu/d2s.c [] []
/src/postgis/liblwgeom/lwspheroid.c [] []
/src/postgis/liblwgeom/lwpoly.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/raster/rt_core/rt_serialize.c ['raster_deserialize_fuzzer'] []
/src/postgis/liblwgeom/lwgeom_geos_node.c [] []
/src/postgis/liblwgeom/stringbuffer.c [] []
/src/postgis/liblwgeom/lwiterator.c [] []
/src/postgis/liblwgeom/lwin_wkt_lex.c ['wkt_import_fuzzer'] []
/src/postgis/fuzzers/wkb_import_fuzzer.cpp ['wkb_import_fuzzer'] []
/src/postgis/liblwgeom/measures3d.c [] []
/src/postgis/liblwgeom/lwalgorithm.c ['geojson_import_fuzzer'] []
/src/postgis/liblwgeom/lwin_wkt_parse.y ['wkt_import_fuzzer'] []
/src/postgis/liblwgeom/measures.c [] []
/src/postgis/liblwgeom/lwin_wkt_lex.l ['wkt_import_fuzzer'] []
/src/postgis/liblwgeom/lwpoint.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/./stringbuffer.h [] []
/src/postgis/raster/rt_core/rt_spatial_relationship.c [] []
/src/postgis/liblwgeom/./lwinline.h ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwtriangle.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/raster/rt_core/rt_context.c ['raster_deserialize_fuzzer'] []
/src/postgis/liblwgeom/lwgeom_geos.c [] []
/src/postgis/liblwgeom/ptarray.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/raster/rt_core/rt_pixel.c ['raster_deserialize_fuzzer'] []
/src/postgis/liblwgeom/lwmpoly.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwgeom_nurbs.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwlinearreferencing.c [] []
/src/postgis/liblwgeom/lwgeom_api.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwcollection.c ['geojson_import_fuzzer', 'twkb_import_fuzzer', 'wkt_import_fuzzer', 'wkb_import_fuzzer'] []
/src/postgis/liblwgeom/lwrandom.c [] []

Directories in report

Directory
/src/postgis/raster/rt_core/../../liblwgeom/
/src/postgis/fuzzers/
/src/postgis/deps/ryu/
/src/postgis/liblwgeom/
/src/postgis/raster/rt_core/
/src/postgis/deps/ryu/./../ryu/
/src/postgis/liblwgeom/./