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_layout

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 2406 73.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 857 26.2%
All colors 3263 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
273 1250 facebook::yoga::OrderedChildren::OrderedChildren(facebook::yoga::Node const*) call site: 01250 _ZN8facebook4yoga12maxOrDefinedITkNSt3__114floating_pointEfTkNS2_14floating_pointEfEEDaT_T0_
206 906 facebook::yoga::(anonymous namespace)::isPlaceable(facebook::yoga::Node const*) call site: 00906 _ZN8facebook4yoga9isDefinedITkNSt3__114floating_pointEfEEbT_
200 2392 facebook::yoga::calculateFlexLine(facebook::yoga::Node*, facebook::yoga::Direction, float, float, float, float, std::__1::__wrap_iter &, std::__1::__wrap_iter , unsigned long) call site: 02392 _ZN8facebook4yoga12maxOrDefinedITkNSt3__114floating_pointEfTkNS2_14floating_pointEfEEDaT_T0_
151 1661 facebook::yoga::resolveCrossDirection(facebook::yoga::FlexDirection, facebook::yoga::Direction) call site: 01661 _ZN8facebook4yoga12maxOrDefinedITkNSt3__114floating_pointEfTkNS2_14floating_pointEfEEDaT_T0_
150 2724 facebook::yoga::boundAxisWithAutoMin(facebook::yoga::Node*, facebook::yoga::FlexDirection, facebook::yoga::Direction, float, float, float, float, float, unsigned int) call site: 02724 _ZN8facebook4yoga12maxOrDefinedITkNSt3__114floating_pointEfTkNS2_14floating_pointEfEEDaT_T0_
108 1813 facebook::yoga::justifyAbsoluteChild(facebook::yoga::Node const*, facebook::yoga::Node*, facebook::yoga::Direction, facebook::yoga::FlexDirection, float) call site: 01813 _ZN8facebook4yoga13to_underlyingITkNS0_11EnumerationENS0_4EdgeEEEDaT_
97 2955 facebook::yoga::calculateLayoutImpl(facebook::yoga::Node*, float, float, facebook::yoga::Direction, facebook::yoga::SizingMode, facebook::yoga::SizingMode, float, float, bool, bool, facebook::yoga::LayoutPassReason, facebook::yoga::LayoutData&, unsigned int, unsigned int) call site: 02955 _ZN8facebook4yoga12maxOrDefinedITkNSt3__114floating_pointEfTkNS2_14floating_pointEfEEDaT_T0_
84 1119 facebook::yoga::resolveChildAlignment(facebook::yoga::Node const*, facebook::yoga::Node const*) call site: 01119 _ZN8facebook4yoga12maxOrDefinedITkNSt3__114floating_pointEfTkNS2_14floating_pointEfEEDaT_T0_
72 1556 facebook::yoga::Node::setLayoutPosition(float, facebook::yoga::PhysicalEdge) call site: 01556 _ZN8facebook4yoga13to_underlyingITkNS0_11EnumerationENS0_12PhysicalEdgeEEEDaT_
68 3121 facebook::yoga::calculateLayoutImpl(facebook::yoga::Node*, float, float, facebook::yoga::Direction, facebook::yoga::SizingMode, facebook::yoga::SizingMode, float, float, bool, bool, facebook::yoga::LayoutPassReason, facebook::yoga::LayoutData&, unsigned int, unsigned int) call site: 03121 _ZN8facebook4yoga12minOrDefinedITkNSt3__114floating_pointEfTkNS2_14floating_pointEfEEDaT_T0_
65 2167 facebook::yoga::StyleValuePool::getLength(facebook::yoga::StyleValueHandle) const call site: 02167 __assert_fail
47 2234 facebook::yoga::Style::gap(facebook::yoga::Gutter) const call site: 02234 _ZN8facebook4yoga13to_underlyingITkNS0_11EnumerationENS0_4EdgeEEEDaT_

Runtime coverage analysis

Covered functions
320
Functions that are reachable but not covered
476
Reachable functions
1142
Percentage of reachable functions covered
58.32%
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/yoga/fuzz/FuzzLayout.cpp 3
/src/yoga/yoga/YGConfig.cpp 2
/src/yoga/yoga/debug/Log.cpp 5
/src/yoga/yoga/../yoga/config/Config.h 8
/src/yoga/yoga/../yoga/enums/Errata.h 2
/src/yoga/yoga/YGNode.cpp 8
/src/yoga/yoga/node/Node.cpp 33
/src/yoga/yoga/../yoga/numeric/FloatOptional.h 13
/src/yoga/yoga/../yoga/style/Style.h 102
/src/yoga/yoga/../yoga/style/StyleValueHandle.h 12
/src/yoga/yoga/../yoga/style/GridStyle.h 6
/src/yoga/yoga/../yoga/style/StyleValuePool.h 9
/src/yoga/yoga/../yoga/style/SmallValueBuffer.h 5
/src/yoga/yoga/../yoga/node/LayoutResults.h 23
/src/yoga/yoga/../yoga/node/Node.h 42
/src/yoga/yoga/../yoga/style/StyleSizeLength.h 21
/src/yoga/yoga/debug/AssertFatal.cpp 3
/src/yoga/yoga/../yoga/enums/LogLevel.h 1
/src/yoga/yoga/config/Config.cpp 3
/src/yoga/yoga/../yoga/event/event.h 18
/src/yoga/yoga/event/event.cpp 1
/src/yoga/yoga/YGNodeStyle.cpp 7
/src/yoga/yoga/../yoga/enums/FlexDirection.h 1
/src/yoga/yoga/../yoga/numeric/Comparison.h 11
/src/yoga/yoga/../yoga/enums/Gutter.h 1
/src/yoga/yoga/../yoga/style/StyleLength.h 11
/src/yoga/yoga/../yoga/enums/Direction.h 1
/src/yoga/yoga/algorithm/CalculateLayout.cpp 46
/src/yoga/yoga/../yoga/enums/YogaEnums.h 4
/src/yoga/yoga/../yoga/algorithm/FlexDirection.h 9
/src/yoga/yoga/style/StyleValuePool.cpp 1
/src/yoga/yoga/../yoga/node/LayoutableChildren.h 14
/src/yoga/yoga/algorithm/Cache.cpp 2
/src/yoga/yoga/algorithm/PixelGrid.cpp 3
/src/yoga/yoga/../yoga/algorithm/BoundAxis.h 2
/src/yoga/yoga/../yoga/algorithm/SizingMode.h 1
/src/yoga/yoga/../yoga/enums/MeasureMode.h 1
/src/yoga/yoga/algorithm/grid/GridLayout.cpp 6
/src/yoga/yoga/algorithm/grid/AutoRepeat.cpp 4
/src/yoga/yoga/../yoga/style/GridTrackSize.h 1
/src/yoga/yoga/algorithm/grid/AutoPlacement.cpp 10
/src/yoga/yoga/../yoga/style/GridTemplateAreas.h 1
/src/yoga/yoga/../yoga/style/GridLine.h 3
/src/yoga/yoga/../yoga/algorithm/grid/LinePlacement.h 2
/src/yoga/yoga/algorithm/grid/LinePlacement.cpp 3
/src/yoga/yoga/../yoga/algorithm/grid/AutoPlacement.h 3
/src/yoga/yoga/../yoga/algorithm/grid/GridLayout.h 2
/src/yoga/yoga/../yoga/algorithm/grid/TrackSizing.h 5
/src/yoga/yoga/algorithm/grid/TrackSizing.cpp 48
/src/yoga/yoga/../yoga/algorithm/Align.h 4
/usr/local/bin/../include/c++/v1/optional 6
/src/yoga/yoga/algorithm/Baseline.cpp 2
/src/yoga/yoga/../yoga/algorithm/OrderedChildren.h 4
/src/yoga/yoga/../yoga/algorithm/grid/GridItem.h 2
/src/yoga/yoga/../yoga/algorithm/TrailingPosition.h 3
/src/yoga/yoga/node/LayoutResults.cpp 1
/src/yoga/yoga/../yoga/node/CachedMeasurement.h 1
/src/yoga/yoga/algorithm/AbsoluteLayout.cpp 8
/src/yoga/yoga/../yoga/algorithm/FlexBasis.h 23
/src/yoga/yoga/algorithm/FlexBasis.cpp 1
/src/yoga/yoga/algorithm/FlexLine.cpp 1
/src/yoga/yoga/../yoga/algorithm/FlexLine.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/yoga/fuzz/FuzzLayout.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=['facebook::yoga::OrderedChildren::OrderedChildren(facebook::yoga::Node const*)', 'facebook::yoga::(anonymous namespace)::isPlaceable(facebook::yoga::Node const*)', 'facebook::yoga::calculateFlexLine(facebook::yoga::Node*, facebook::yoga::Direction, float, float, float, float, std::__1::__wrap_iter&, std::__1::__wrap_iter, unsigned long)', 'facebook::yoga::resolveCrossDirection(facebook::yoga::FlexDirection, facebook::yoga::Direction)', 'facebook::yoga::boundAxisWithAutoMin(facebook::yoga::Node*, facebook::yoga::FlexDirection, facebook::yoga::Direction, float, float, float, float, float, unsigned int)', 'facebook::yoga::justifyAbsoluteChild(facebook::yoga::Node const*, facebook::yoga::Node*, facebook::yoga::Direction, facebook::yoga::FlexDirection, float)', 'facebook::yoga::calculateLayoutImpl(facebook::yoga::Node*, float, float, facebook::yoga::Direction, facebook::yoga::SizingMode, facebook::yoga::SizingMode, float, float, bool, bool, facebook::yoga::LayoutPassReason, facebook::yoga::LayoutData&, unsigned int, unsigned int)', 'facebook::yoga::resolveChildAlignment(facebook::yoga::Node const*, facebook::yoga::Node const*)', 'facebook::yoga::Node::setLayoutPosition(float, facebook::yoga::PhysicalEdge)', 'facebook::yoga::calculateLayoutImpl(facebook::yoga::Node*, float, float, facebook::yoga::Direction, facebook::yoga::SizingMode, facebook::yoga::SizingMode, float, float, bool, bool, facebook::yoga::LayoutPassReason, facebook::yoga::LayoutData&, unsigned int, unsigned int)']

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
facebook::yoga::layoutAbsoluteDescendants(facebook::yoga::Node*,facebook::yoga::Node*,facebook::yoga::SizingMode,facebook::yoga::Direction,facebook::yoga::LayoutData&,unsignedint,unsignedint,float,float,float,float) 100 10 10.0% ['fuzz_layout']
facebook::yoga::calculateLayoutImpl(facebook::yoga::Node*,float,float,facebook::yoga::Direction,facebook::yoga::SizingMode,facebook::yoga::SizingMode,float,float,bool,bool,facebook::yoga::LayoutPassReason,facebook::yoga::LayoutData&,unsignedint,unsignedint) 913 492 53.88% ['fuzz_layout']
boolfacebook::yoga::sizeFlexLine (facebook::yoga::Node*,facebook::yoga::Direction,facebook::yoga::FlexDirection,float,float,float,facebook::yoga::SizingMode,float,float,float&,facebook::yoga::Direction,float,float,unsignedint) 53 29 54.71% ['fuzz_layout']
facebook::yoga::distributeFreeSpaceFirstPass(facebook::yoga::Node*,facebook::yoga::FlexLine&,facebook::yoga::Direction,facebook::yoga::FlexDirection,float,float,float,float,float,unsignedint)::$_0::operator()(facebook::yoga::Node*,float,float,float)const 52 25 48.07%
facebook::yoga::justifyMainAxis(facebook::yoga::Node*,facebook::yoga::FlexLine&,facebook::yoga::FlexDirection,facebook::yoga::FlexDirection,facebook::yoga::Direction,facebook::yoga::SizingMode,facebook::yoga::SizingMode,float,float,float,float,float,float,float,bool,bool) 140 68 48.57% ['fuzz_layout']

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/yoga/yoga/algorithm/grid/AutoRepeat.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/enums/BoxSizing.h [] []
/src/yoga/yoga/../yoga/enums/Justify.h [] []
/src/yoga/yoga/../yoga/style/GridLine.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/Direction.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/grid/GridTrack.h [] []
/src/yoga/yoga/config/Config.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/enums/Overflow.h [] []
/src/yoga/yoga/algorithm/PixelGrid.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/style/StyleValueHandle.h ['fuzz_layout'] []
/src/yoga/yoga/algorithm/FlexBasis.cpp ['fuzz_layout'] ['fuzz_layout']
/usr/local/bin/../include/c++/v1/__iterator/move_iterator.h [] []
/src/yoga/yoga/../yoga/algorithm/grid/GridItem.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/config/Config.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/FlexDirection.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/Align.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/grid/AutoPlacement.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/style/SmallValueBuffer.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/YogaEnums.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/style/StyleValuePool.h ['fuzz_layout'] []
/src/yoga/yoga/algorithm/Baseline.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/enums/Gutter.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/PositionType.h [] []
/src/yoga/yoga/../yoga/algorithm/grid/GridLayout.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/SizingMode.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/grid/LinePlacement.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/ExperimentalFeature.h [] []
/src/yoga/yoga/YGNode.cpp ['fuzz_layout'] ['fuzz_layout']
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/src/yoga/yoga/../yoga/style/GridTemplateAreas.h ['fuzz_layout'] []
/src/yoga/yoga/debug/AssertFatal.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/node/Node.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/style/StyleLength.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/OrderedChildren.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/style/GridTrackSize.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/Errata.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/numeric/Comparison.h ['fuzz_layout'] []
/usr/local/bin/../include/c++/v1/string [] []
/src/yoga/yoga/YGNodeStyle.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/node/Node.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/numeric/FloatOptional.h ['fuzz_layout'] []
/src/yoga/fuzz/FuzzLayout.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/algorithm/grid/TrackSizing.cpp ['fuzz_layout'] ['fuzz_layout']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/yoga/yoga/../yoga/enums/Align.h [] []
/src/yoga/yoga/../yoga/enums/FlexDirection.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/Display.h [] []
/src/yoga/yoga/algorithm/Cache.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/algorithm/grid/LinePlacement.cpp ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/FlexLine.h ['fuzz_layout'] []
/src/yoga/yoga/algorithm/FlexLine.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/enums/NodeType.h [] []
/src/yoga/yoga/../yoga/algorithm/TrailingPosition.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/node/LayoutableChildren.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/event/event.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/BoundAxis.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/Wrap.h [] []
/src/yoga/yoga/algorithm/CalculateLayout.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/YGConfig.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/enums/Edge.h [] []
/src/yoga/yoga/../yoga/style/StyleSizeLength.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/style/Style.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/MeasureMode.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/Unit.h [] []
/src/yoga/yoga/../yoga/enums/GridAutoRepeat.h [] []
/src/yoga/yoga/../yoga/enums/LogLevel.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/style/GridStyle.h ['fuzz_layout'] []
/src/yoga/yoga/event/event.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/algorithm/FlexBasis.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/algorithm/grid/TrackSizing.h ['fuzz_layout'] []
/src/yoga/yoga/../yoga/enums/GridAutoFlow.h [] []
/usr/local/bin/../include/c++/v1/optional ['fuzz_layout'] []
/src/yoga/yoga/../yoga/node/LayoutResults.h ['fuzz_layout'] []
/src/yoga/yoga/style/StyleValuePool.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/debug/Log.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/../yoga/node/CachedMeasurement.h ['fuzz_layout'] []
/src/yoga/yoga/node/LayoutResults.cpp ['fuzz_layout'] []
/src/yoga/yoga/algorithm/grid/GridLayout.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/algorithm/grid/AutoPlacement.cpp ['fuzz_layout'] ['fuzz_layout']
/src/yoga/yoga/algorithm/AbsoluteLayout.cpp ['fuzz_layout'] ['fuzz_layout']

Directories in report

Directory
/src/yoga/yoga/../yoga/enums/
/usr/local/bin/../include/c++/v1/__exception/
/src/yoga/yoga/event/
/usr/local/bin/../include/c++/v1/
/src/yoga/yoga/debug/
/src/yoga/yoga/../yoga/node/
/src/yoga/yoga/../yoga/config/
/src/yoga/yoga/
/src/yoga/yoga/config/
/src/yoga/yoga/style/
/src/yoga/yoga/../yoga/numeric/
/src/yoga/yoga/../yoga/event/
/src/yoga/yoga/../yoga/algorithm/
/src/yoga/yoga/../yoga/style/
/src/yoga/yoga/algorithm/
/src/yoga/fuzz/
/usr/local/bin/../include/c++/v1/__iterator/
/src/yoga/yoga/../yoga/algorithm/grid/
/src/yoga/yoga/algorithm/grid/
/src/yoga/yoga/node/