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

Fuzzer details

Fuzzer: uart_transport_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 168 74.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 1 0.44%
lawngreen 50+ 56 24.8%
All colors 225 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
121 34 pw::bluetooth_hci::CommandPacket::Decode(pw::span , cpp20::endian) call site: 00034 pw_assert_HandleFailure
12 1 LLVMFuzzerTestOneInput call site: 00001 __clang_call_terminate
7 169 pw::bluetooth_hci::AsyncDataPacket::Decode(pw::span , cpp20::endian) call site: 00169 pw_assert_HandleFailure
6 187 pw::bluetooth_hci::SyncDataPacket::Decode(pw::span , cpp20::endian) call site: 00187 pw_assert_HandleFailure
6 204 pw::bluetooth_hci::EventPacket::Decode(pw::span ) call site: 00204 pw_assert_HandleFailure
3 29 pw::bluetooth_hci::CommandPacket::Decode(pw::span , cpp20::endian) call site: 00029
3 214 pw::bluetooth_hci::DecodeHciUartData(pw::span , fit::function_impl<8ul, true, void (pw::bluetooth_hci::Packet const&), std::__1::allocator > const&) call site: 00214
2 17 pw::bluetooth_hci::DecodeHciUartData(pw::span , fit::function_impl<8ul, true, void (pw::bluetooth_hci::Packet const&), std::__1::allocator > const&) call site: 00017
2 158 pw::bluetooth_hci::DecodeHciUartData(pw::span , fit::function_impl<8ul, true, void (pw::bluetooth_hci::Packet const&), std::__1::allocator > const&) call site: 00158
2 222 LLVMFuzzerTestOneInput call site: 00222
1 14 LLVMFuzzerTestOneInput call site: 00014
1 20 pw::bluetooth_hci::DecodeHciUartData(pw::span , fit::function_impl<8ul, true, void (pw::bluetooth_hci::Packet const&), std::__1::allocator > const&) call site: 00020

Runtime coverage analysis

Covered functions
7
Functions that are reachable but not covered
216
Reachable functions
227
Percentage of reachable functions covered
4.85%
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
/proc/self/cwd/pw_bluetooth_hci/uart_transport_fuzzer.cc 2
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/function.h 3
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/internal/function.h 11
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/internal/../nullable.h 1
/proc/self/cwd/pw_span/public/pw_span/internal/span_impl.h 19
/proc/self/cwd/pw_bluetooth_hci/uart_transport.cc 1
/proc/self/cwd/pw_bluetooth_hci/packet.cc 4
/proc/self/cwd/pw_bytes/public/pw_bytes/endian.h 4
/proc/self/cwd/pw_bluetooth_hci/public/pw_bluetooth_hci/packet.h 10
/proc/self/cwd/pw_assert_basic/assert_basic.cc 1
/proc/self/cwd/pw_assert_basic/basic_handler.cc 2
/proc/self/cwd/pw_sys_io_stdio/sys_io.cc 2
/proc/self/cwd/pw_sys_io/sys_io.cc 1
/proc/self/cwd/pw_status/public/pw_status/status.h 9
/proc/self/cwd/pw_status/public/pw_status/status_with_size.h 10
/proc/self/cwd/pw_string/public/pw_string/string_builder.h 10
/proc/self/cwd/pw_string/string_builder.cc 8
/proc/self/cwd/pw_string/public/pw_string/util.h 2
/proc/self/cwd/pw_string/public/pw_string/internal/length.h 1
/proc/self/cwd/pw_string/format.cc 1
/usr/local/bin/../include/c++/v1/optional 5

Fuzzer: detokenize_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 78 70.2%
gold [1:9] 1 0.90%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 32 28.8%
All colors 111 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
46 48 pw::tokenizer::StringSegment::Decode(pw::span const&) const call site: 00048 pw_varint_Decode64
11 35 pw::tokenizer::DetokenizedString::DetokenizedString(unsigned int, pw::span const, 18446744073709551615ul> const&, pw::span const&) call site: 00035
4 2 LLVMFuzzerTestOneInput call site: 00002
4 8 pw::tokenizer::Detokenizer::Detokenizer(pw::tokenizer::TokenDatabase const&) call site: 00008
3 22 pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const call site: 00022
3 104 LLVMFuzzerTestOneInput call site: 00104
2 17 pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const call site: 00017
1 14 LLVMFuzzerTestOneInput call site: 00014
1 26 pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const call site: 00026
1 28 pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const call site: 00028
1 31 pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const call site: 00031
1 98 pw::tokenizer::FormatString::Format(pw::span ) const call site: 00098

Runtime coverage analysis

Covered functions
8
Functions that are reachable but not covered
125
Reachable functions
136
Percentage of reachable functions covered
8.09%
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
/proc/self/cwd/pw_tokenizer/detokenize_fuzzer.cc 1
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/token_database.h 8
/proc/self/cwd/pw_tokenizer/detokenize.cc 3
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/detokenize.h 5
/proc/self/cwd/pw_span/public/pw_span/internal/span_impl.h 15
/proc/self/cwd/pw_bytes/public/pw_bytes/endian.h 4
/proc/self/cwd/pw_tokenizer/decode.cc 8
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/internal/decode.h 11
/proc/self/cwd/pw_varint/public/pw_varint/varint.h 3
/proc/self/cwd/pw_varint/varint_c.c 1

Fuzzer: encoder_fuzz_test

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 251 62.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 150 37.4%
All colors 401 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
114 35 pw::protobuf::StreamEncoder::UpdateStatusForWrite(unsigned int, pw::protobuf::WireType, unsigned long) call site: 00035 putchar
21 4 pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&) call site: 00004
18 203 pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int) call site: 00203
13 153 pw::protobuf::StreamEncoder::UpdateStatusForWrite(unsigned int, pw::protobuf::WireType, unsigned long) call site: 00153 pw_assert_HandleFailure
8 183 pw::protobuf::StreamEncoder::WriteVarintField(unsigned int, unsigned long) call site: 00183 pw_varint_Encode64
6 265 pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int) call site: 00265
5 192 pw_varint_Encode64 call site: 00192 pw_assert_HandleFailure
5 364 pw::protobuf::StreamEncoder::WriteLengthDelimitedField(unsigned int, pw::span ) call site: 00364
3 167 pw::protobuf::StreamEncoder::UpdateStatusForWrite(unsigned int, pw::protobuf::WireType, unsigned long) call site: 00167
3 283 pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int) call site: 00283
3 309 pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int) call site: 00309
3 332 pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int) call site: 00332

Runtime coverage analysis

Covered functions
28
Functions that are reachable but not covered
414
Reachable functions
466
Percentage of reachable functions covered
11.16%
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
/proc/self/cwd/pw_protobuf/encoder_fuzzer.cc 13
/proc/self/cwd/pw_span/public/pw_span/internal/span_impl.h 39
/proc/self/cwd/pw_protobuf/public/pw_protobuf/encoder.h 36
/proc/self/cwd/pw_status/public/pw_status/status.h 10
/proc/self/cwd/pw_stream/public/pw_stream/memory_stream.h 5
/proc/self/cwd/pw_stream/public/pw_stream/stream.h 10
/proc/self/cwd/pw_protobuf/encoder.cc 7
/proc/self/cwd/pw_varint/public/pw_varint/varint.h 7
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/stdcompat/include/lib/stdcompat/bit.h 1
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/stdcompat/include/lib/stdcompat/internal/bit.h 1
/proc/self/cwd/pw_assert_basic/basic_handler.cc 2
/proc/self/cwd/pw_sys_io_stdio/sys_io.cc 2
/proc/self/cwd/pw_sys_io/sys_io.cc 1
/proc/self/cwd/pw_status/public/pw_status/status_with_size.h 9
/proc/self/cwd/pw_string/public/pw_string/string_builder.h 10
/proc/self/cwd/pw_string/string_builder.cc 8
/proc/self/cwd/pw_string/public/pw_string/util.h 2
/proc/self/cwd/pw_string/public/pw_string/internal/length.h 1
/proc/self/cwd/pw_string/format.cc 1
/proc/self/cwd/pw_status/public/pw_status/try.h 1
/proc/self/cwd/pw_protobuf/public/pw_protobuf/wire_format.h 3
/proc/self/cwd/pw_protobuf/public/pw_protobuf/serialized_size.h 4
/proc/self/cwd/pw_assert_basic/assert_basic.cc 1
/proc/self/cwd/pw_result/public/pw_result/result.h 4
/proc/self/cwd/pw_result/public/pw_result/internal/result_internal.h 1
/proc/self/cwd/pw_varint/varint_c.c 1
/proc/self/cwd/pw_bytes/public/pw_bytes/endian.h 5
/proc/self/cwd/pw_assert/public/pw_assert/internal/check_impl.h 2

Fuzzer: decoder_fuzz_test

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 241 48.8%
gold [1:9] 2 0.40%
yellow [10:29] 6 1.21%
greenyellow [30:49] 12 2.43%
lawngreen 50+ 232 47.0%
All colors 493 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
116 16 pw::protobuf::StreamDecoder::Next() call site: 00016 putchar
15 149 pw::varint::Read(pw::stream::Reader&, unsigned long*, unsigned long) call site: 00149 pw_assert_HandleFailure
9 185 pw::protobuf::StreamDecoder::Advance(unsigned long) call site: 00185
8 172 pw::varint::Read(pw::stream::Reader&, unsigned long*, unsigned long) call site: 00172
5 134 pw::protobuf::StreamDecoder::Next() call site: 00134 pw_assert_basic_HandleFailure
5 262 pw::protobuf::StreamDecoder::ReadVarintField(pw::span , pw::protobuf::internal::VarintType) call site: 00262
4 5 pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&) call site: 00005
4 488 pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&) call site: 00488
3 10 pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&) call site: 00010
3 140 pw::varint::Read(pw::stream::Reader&, unsigned long*, unsigned long) call site: 00140
3 145 pw::varint::Read(pw::stream::Reader&, unsigned long*, unsigned long) call site: 00145
3 223 pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedDecode(FuzzedDataProvider&, pw::protobuf::StreamDecoder&, unsigned int) call site: 00223

Runtime coverage analysis

Covered functions
18
Functions that are reachable but not covered
465
Reachable functions
498
Percentage of reachable functions covered
6.63%
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
/proc/self/cwd/pw_protobuf/decoder_fuzzer.cc 3
/proc/self/cwd/pw_span/public/pw_span/internal/span_impl.h 42
/proc/self/cwd/pw_stream/public/pw_stream/memory_stream.h 2
/proc/self/cwd/pw_stream/public/pw_stream/stream.h 12
/proc/self/cwd/pw_protobuf/public/pw_protobuf/stream_decoder.h 42
/proc/self/cwd/pw_status/public/pw_status/status.h 12
/proc/self/cwd/pw_protobuf/stream_decoder.cc 14
/proc/self/cwd/pw_assert_basic/basic_handler.cc 2
/proc/self/cwd/pw_sys_io_stdio/sys_io.cc 2
/proc/self/cwd/pw_sys_io/sys_io.cc 1
/proc/self/cwd/pw_status/public/pw_status/status_with_size.h 12
/proc/self/cwd/pw_string/public/pw_string/string_builder.h 10
/proc/self/cwd/pw_string/string_builder.cc 8
/proc/self/cwd/pw_string/public/pw_string/util.h 2
/proc/self/cwd/pw_string/public/pw_string/internal/length.h 1
/proc/self/cwd/pw_string/format.cc 1
/proc/self/cwd/pw_status/public/pw_status/try.h 2
/proc/self/cwd/pw_protobuf/public/pw_protobuf/wire_format.h 6
/proc/self/cwd/pw_varint/stream.cc 1
/proc/self/cwd/pw_assert_basic/assert_basic.cc 1
/proc/self/cwd/pw_result/public/pw_result/result.h 16
/proc/self/cwd/pw_result/public/pw_result/internal/result_internal.h 2
/proc/self/cwd/pw_varint/public/pw_varint/varint.h 1
/proc/self/cwd/pw_assert/public/pw_assert/internal/check_impl.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, 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
pw::protobuf::StreamDecoder::Read(pw::span ,pw::span ) /proc/self/cwd/pw_protobuf/stream_decoder.cc 5 ['class.pw::protobuf::StreamDecoder *', 'size_t', 'char *', 'size_t', 'class.pw::protobuf::internal::MessageField *'] 18 0 1243 216 40 436 1 673 305
pw::protobuf::StreamEncoder::Write(pw::span ,pw::span ) /proc/self/cwd/pw_protobuf/encoder.cc 5 ['class.pw::protobuf::StreamEncoder *', 'size_t', 'char *', 'size_t', 'class.pw::protobuf::internal::MessageField *'] 19 0 1688 307 71 402 1 637 235
pw::tokenizer::Detokenizer::DetokenizeBase64(std::__1::basic_string_view >)const /proc/self/cwd/pw_tokenizer/detokenize.cc 4 ['class.std::__1::basic_string *', 'class.pw::tokenizer::Detokenizer *', 'char *', 'size_t'] 14 0 63 7 6 173 0 362 117
pw::tokenizer::FormatString::FormatString(charconst*) /proc/self/cwd/pw_tokenizer/decode.cc 2 ['class.pw::tokenizer::FormatString *', 'char *'] 3 0 148 25 24 31 0 85 85
pw::bluetooth_hci::SyncDataPacket::Encode(pw::span ,cpp20::endian)const /proc/self/cwd/pw_bluetooth_hci/packet.cc 5 ['class.pw::Result *', 'class.pw::bluetooth_hci::CommandPacket *', 'size_t', 'char *', 'int'] 12 0 92 8 3 171 0 200 39
pw::string::FloatAsIntToString(float,pw::span ) /proc/self/cwd/pw_string/type_to_string.cc 3 ['float', 'size_t', 'char *'] 6 0 126 17 7 51 0 70 39
pw::tokenizer::DetokenizedString::BestStringWithErrors()const /proc/self/cwd/pw_tokenizer/detokenize.cc 2 ['class.std::__1::basic_string *', 'class.pw::tokenizer::DetokenizedString *'] 2 0 45 9 4 6 0 36 36
pw::tokenizer::Detokenizer::FromElfSection(pw::span ) /proc/self/cwd/pw_tokenizer/detokenize.cc 3 ['class.pw::Result *', 'size_t', 'char *'] 12 0 173 24 21 145 0 189 35

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

Functions statically reachable by fuzzers
73.0%
686 / 942
Cyclomatic complexity statically reachable by fuzzers
78.0%
2193 / 2829

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 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.

/proc/self/cwd/pw_bluetooth_hci/uart_transport_fuzzer.cc

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=['pw::bluetooth_hci::CommandPacket::Decode(pw::span, cpp20::endian)', 'LLVMFuzzerTestOneInput', 'pw::bluetooth_hci::AsyncDataPacket::Decode(pw::span, cpp20::endian)', 'pw::bluetooth_hci::SyncDataPacket::Decode(pw::span, cpp20::endian)', 'pw::bluetooth_hci::EventPacket::Decode(pw::span)', 'pw::bluetooth_hci::CommandPacket::Decode(pw::span, cpp20::endian)', 'pw::bluetooth_hci::DecodeHciUartData(pw::span, fit::function_impl<8ul, true, void (pw::bluetooth_hci::Packet const&), std::__1::allocator > const&)', 'pw::bluetooth_hci::DecodeHciUartData(pw::span, fit::function_impl<8ul, true, void (pw::bluetooth_hci::Packet const&), std::__1::allocator > const&)', 'pw::bluetooth_hci::DecodeHciUartData(pw::span, fit::function_impl<8ul, true, void (pw::bluetooth_hci::Packet const&), std::__1::allocator > const&)']

/proc/self/cwd/pw_tokenizer/detokenize_fuzzer.cc

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=['pw::tokenizer::StringSegment::Decode(pw::span const&) const', 'pw::tokenizer::DetokenizedString::DetokenizedString(unsigned int, pw::span const, 18446744073709551615ul> const&, pw::span const&)', 'LLVMFuzzerTestOneInput', 'pw::tokenizer::Detokenizer::Detokenizer(pw::tokenizer::TokenDatabase const&)', 'pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const', 'pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const', 'pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const', 'pw::tokenizer::Detokenizer::Detokenize(pw::span const&) const']

/proc/self/cwd/pw_protobuf/encoder_fuzzer.cc

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=['pw::protobuf::StreamEncoder::UpdateStatusForWrite(unsigned int, pw::protobuf::WireType, unsigned long)', 'pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&)', 'pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int)', 'pw::protobuf::StreamEncoder::UpdateStatusForWrite(unsigned int, pw::protobuf::WireType, unsigned long)', 'pw::protobuf::StreamEncoder::WriteVarintField(unsigned int, unsigned long)', 'pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int)', 'pw_varint_Encode64', 'pw::protobuf::StreamEncoder::WriteLengthDelimitedField(unsigned int, pw::span)', 'pw::protobuf::StreamEncoder::UpdateStatusForWrite(unsigned int, pw::protobuf::WireType, unsigned long)', 'pw::protobuf::fuzz::(anonymous namespace)::RecursiveFuzzedEncode(FuzzedDataProvider&, pw::protobuf::StreamEncoder&, unsigned int)']

/proc/self/cwd/pw_protobuf/decoder_fuzzer.cc

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=['pw::protobuf::StreamDecoder::Next()', 'pw::varint::Read(pw::stream::Reader&, unsigned long*, unsigned long)', 'pw::protobuf::StreamDecoder::Advance(unsigned long)', 'pw::varint::Read(pw::stream::Reader&, unsigned long*, unsigned long)', 'pw::protobuf::StreamDecoder::Next()', 'pw::protobuf::StreamDecoder::ReadVarintField(pw::span, pw::protobuf::internal::VarintType)', 'pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&)', 'pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&)', 'pw::protobuf::fuzz::(anonymous namespace)::TestOneInput(FuzzedDataProvider&)', 'pw::varint::Read(pw::stream::Reader&, unsigned long*, unsigned long)']

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
[] []
/proc/self/cwd/pw_protobuf/public/pw_protobuf/wire_format.h ['encoder_fuzz_test', 'decoder_fuzz_test'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/proc/self/cwd/pw_string/public/pw_string/internal/length.h ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_protobuf/stream_decoder.cc ['decoder_fuzz_test'] ['decoder_fuzz_test']
/proc/self/cwd/pw_span/public/pw_span/internal/span_impl.h ['uart_transport_fuzzer', 'detokenize_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/usr/local/bin/../include/c++/v1/math.h [] []
/proc/self/cwd/pw_string/public/pw_string/format.h [] []
/proc/self/cwd/pw_bytes/byte_builder.cc [] []
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/detokenize.h ['detokenize_fuzzer'] []
/proc/self/cwd/pw_stream/public/pw_stream/stream.h ['encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_varint/varint_c.c ['detokenize_fuzzer', 'encoder_fuzz_test'] ['encoder_fuzz_test']
/usr/local/bin/../include/c++/v1/stdlib.h [] []
/proc/self/cwd/pw_sys_io_stdio/sys_io.cc ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_stream/public/pw_stream/null_stream.h [] []
/proc/self/cwd/pw_string/type_to_string.cc [] []
/proc/self/cwd/pw_protobuf/public/pw_protobuf/internal/codegen.h [] []
/proc/self/cwd/pw_tokenizer/detokenize.cc ['detokenize_fuzzer'] ['detokenize_fuzzer']
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/internal/../nullable.h ['uart_transport_fuzzer'] []
/proc/self/cwd/pw_status/public/pw_status/status.h ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_string/public/pw_string/to_string.h [] []
/proc/self/cwd/pw_protobuf/public/pw_protobuf/stream_decoder.h ['decoder_fuzz_test'] []
/proc/self/cwd/pw_string/public/pw_string/string.h [] []
/proc/self/cwd/pw_varint/public/pw_varint/varint.h ['detokenize_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_tokenizer/detokenize_fuzzer.cc ['detokenize_fuzzer'] ['detokenize_fuzzer']
/proc/self/cwd/pw_bytes/public/pw_bytes/endian.h ['uart_transport_fuzzer', 'detokenize_fuzzer', 'encoder_fuzz_test'] []
/proc/self/cwd/pw_string/public/pw_string/internal/string_common_functions.inc [] []
/proc/self/cwd/pw_stream/public/pw_stream/memory_stream.h ['encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/stdcompat/include/lib/stdcompat/bit.h ['encoder_fuzz_test'] []
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/token_database.h ['detokenize_fuzzer'] []
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/internal/function.h ['uart_transport_fuzzer'] []
/proc/self/cwd/pw_toolchain/public/pw_toolchain/internal/sibling_cast.h [] []
/proc/self/cwd/pw_string/public/pw_string/string_builder.h ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_string/string_builder.cc ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_string/public/pw_string/type_to_string.h [] []
/proc/self/cwd/pw_base64/public/pw_base64/base64.h [] []
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/function.h ['uart_transport_fuzzer'] []
/proc/self/cwd/pw_assert/public/pw_assert/internal/check_impl.h ['encoder_fuzz_test', 'decoder_fuzz_test'] []
/usr/local/bin/../include/c++/v1/optional ['uart_transport_fuzzer'] []
/proc/self/cwd/pw_status/public/pw_status/try.h ['encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_tokenizer/base64.cc [] []
/proc/self/cwd/pw_assert_basic/basic_handler.cc ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_string/public/pw_string/util.h ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_assert_basic/assert_basic.cc ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_bytes/public/pw_bytes/byte_builder.h [] []
/proc/self/cwd/pw_varint/stream.cc ['decoder_fuzz_test'] ['decoder_fuzz_test']
/proc/self/cwd/pw_tokenizer/decode.cc ['detokenize_fuzzer'] ['detokenize_fuzzer']
/proc/self/cwd/pw_sys_io/sys_io.cc ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_protobuf/encoder_fuzzer.cc ['encoder_fuzz_test'] ['encoder_fuzz_test']
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/stdcompat/include/lib/stdcompat/internal/bit.h ['encoder_fuzz_test'] []
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/internal/decode.h ['detokenize_fuzzer'] []
/proc/self/cwd/pw_result/public/pw_result/result.h ['encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_protobuf/public/pw_protobuf/serialized_size.h ['encoder_fuzz_test'] []
/proc/self/cwd/pw_string/public/pw_string/internal/string_impl.h [] []
/proc/self/cwd/pw_bluetooth_hci/packet.cc ['uart_transport_fuzzer'] ['uart_transport_fuzzer']
/proc/self/cwd/pw_string/format.cc ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_protobuf/encoder.cc ['encoder_fuzz_test'] ['encoder_fuzz_test']
/proc/self/cwd/pw_bluetooth_hci/public/pw_bluetooth_hci/packet.h ['uart_transport_fuzzer'] []
/proc/self/cwd/pw_result/public/pw_result/internal/result_internal.h ['encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/base64.h [] []
/proc/self/cwd/pw_status/public/pw_status/status_with_size.h ['uart_transport_fuzzer', 'encoder_fuzz_test', 'decoder_fuzz_test'] []
/proc/self/cwd/pw_protobuf/public/pw_protobuf/encoder.h ['encoder_fuzz_test'] []
/proc/self/cwd/pw_containers/public/pw_containers/vector.h [] []
/proc/self/cwd/pw_protobuf/decoder_fuzzer.cc ['decoder_fuzz_test'] ['decoder_fuzz_test']
/proc/self/cwd/pw_stream/public/pw_stream/seek.h [] []
/proc/self/cwd/pw_bluetooth_hci/uart_transport.cc ['uart_transport_fuzzer'] ['uart_transport_fuzzer']
/proc/self/cwd/pw_base64/base64.cc [] []
/proc/self/cwd/pw_stream/memory_stream.cc [] []
/proc/self/cwd/pw_bluetooth_hci/uart_transport_fuzzer.cc ['uart_transport_fuzzer'] ['uart_transport_fuzzer']
/proc/self/cwd/pw_bytes/public/pw_bytes/array.h [] []
/usr/local/bin/../include/c++/v1/exception [] []

Directories in report

Directory
/proc/self/cwd/pw_sys_io_stdio/
/proc/self/cwd/pw_toolchain/public/pw_toolchain/internal/
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/stdcompat/include/lib/stdcompat/internal/
/proc/self/cwd/pw_varint/public/pw_varint/
/proc/self/cwd/pw_sys_io/
/proc/self/cwd/pw_stream/public/pw_stream/
/proc/self/cwd/pw_assert_basic/
/proc/self/cwd/pw_protobuf/public/pw_protobuf/internal/
/proc/self/cwd/pw_assert/public/pw_assert/internal/
/proc/self/cwd/pw_base64/
/proc/self/cwd/pw_string/public/pw_string/internal/
/proc/self/cwd/pw_tokenizer/
/proc/self/cwd/pw_result/public/pw_result/
/proc/self/cwd/pw_varint/
/proc/self/cwd/pw_containers/public/pw_containers/
/usr/local/bin/../include/c++/v1/
/proc/self/cwd/pw_protobuf/
/proc/self/cwd/pw_bluetooth_hci/
/proc/self/cwd/pw_base64/public/pw_base64/
/proc/self/cwd/pw_bluetooth_hci/public/pw_bluetooth_hci/
/proc/self/cwd/pw_string/public/pw_string/
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/internal/../
/proc/self/cwd/pw_bytes/public/pw_bytes/
/proc/self/cwd/pw_bytes/
/proc/self/cwd/pw_protobuf/public/pw_protobuf/
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/
/proc/self/cwd/pw_string/
/proc/self/cwd/pw_status/public/pw_status/
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/internal/
/proc/self/cwd/third_party/fuchsia/repo/sdk/lib/stdcompat/include/lib/stdcompat/
/proc/self/cwd/pw_span/public/pw_span/internal/
/proc/self/cwd/pw_tokenizer/public/pw_tokenizer/internal/
/proc/self/cwd/pw_result/public/pw_result/internal/
/proc/self/cwd/pw_stream/