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: pdf_load_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 1 11.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 8 88.8%
All colors 9 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
1 5 ...pdfplumber.fuzz.pdf_load_fuzzer.TestOneInput call site: 00005 pdf.to_dict

Runtime coverage analysis

Covered functions
212
Functions that are reachable but not covered
8
Reachable functions
8
Percentage of reachable functions covered
0.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
/ 1
...pdfplumber.fuzz.pdf_load_fuzzer 7

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
pdfminer.high_level.extract_text_to_fp pdfminer.high_level 16 ['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'] 13 0 4 8 6 311 0 1051 1048
pdfminer.converter.HTMLConverter.receive_layout.render pdfminer.converter 1 ['N/A'] 6 0 24 15 9 75 2 253 208
pdfplumber.display.PageImage.debug_tablefinder pdfplumber.display 2 ['N/A', 'N/A'] 6 0 3 2 4 64 0 216 186
pdfminer.layout.LTLayoutContainer.analyze pdfminer.layout 2 ['N/A', 'N/A'] 7 0 7 2 4 68 0 216 177
pdfplumber.utils.text.extract_text pdfplumber.utils.text 4 ['N/A', 'N/A', 'N/A', 'N/A'] 7 0 0 2 4 62 0 206 146
pdfminer.psparser.PSStackParser.nextobject pdfminer.psparser 1 ['N/A'] 3 0 15 13 8 49 0 170 133
pdfplumber.cli.main pdfplumber.cli 1 ['N/A'] 12 0 6 4 5 171 1 573 109
pdfminer.pdfinterp.PDFPageInterpreter.do_TJ pdfminer.pdfinterp 2 ['N/A', 'N/A'] 4 0 2 2 4 37 3 121 79
pdfminer.pdfdocument.PDFStandardSecurityHandlerV5.authenticate pdfminer.pdfdocument 2 ['N/A', 'N/A'] 4 0 0 2 4 26 0 85 76
pdfplumber.structure.PDFStructTree.__init__ pdfplumber.structure 3 ['N/A', 'N/A', 'N/A'] 4 0 3 4 5 35 2 132 75

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

Functions statically reachable by fuzzers
40.0%
342 / 850
Cyclomatic complexity statically reachable by fuzzers
43.0%
1267 / 2937

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

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
pdfplumber.structure.PDFStructTree._make_attributes 33 0 0.0% []
pdfplumber.structure.PDFStructTree._resolve_children 35 0 0.0% []
pdfminer.utils.apply_png_predictor 48 5 10.41% ['pdf_load_fuzzer']
pdfminer.layout.LTLayoutContainer.group_textboxes.isany 31 0 0.0% []
r.append 53 20 37.73% ['pdf_load_fuzzer']
pdfminer.pdffont.getdict 41 2 4.878% ['pdf_load_fuzzer']
pdfminer.pdffont.CFFFont.__init__ 58 0 0.0% []
pdfminer.pdffont.TrueTypeFont.create_unicode_map 68 7 10.29% ['pdf_load_fuzzer']
pdfminer.pdffont.PDFCIDFont.__init__ 50 0 0.0% []
pdfminer.pdftypes.PDFStream.decode 60 0 0.0% []
pdfminer.cmapdb.CMapParser.do_keyword 119 0 0.0% []
pdfminer.pdfdocument.PDFXRef.load 40 0 0.0% []
pdfminer.pdfdocument.PDFXRefFallback.load 41 22 53.65% ['pdf_load_fuzzer']
d.items 189 25 13.22% ['pdf_load_fuzzer']
pdfminer.pdfparser.PDFParser.do_keyword 58 15 25.86% ['pdf_load_fuzzer']
pdfminer.fontmetrics.convert_font_metrics 46 13 28.26% ['pdf_load_fuzzer']
pdfminer.pdfinterp.PDFResourceManager.get_font 32 0 0.0% []
pdfminer.pdfinterp.PDFPageInterpreter.execute 37 0 0.0% []
pdfminer.converter.HTMLConverter.receive_layout.render 50 0 0.0% []
pdfminer.converter.XMLConverter.receive_layout.render 54 0 0.0% []
pdfminer.converter.HOCRConverter.receive_layout.render 36 0 0.0% []
pdfplumber.page.Page.process_object.process_attr 31 0 0.0% []
pdfminer.pdfpage.PDFPage.create_pages.depth_first_search 42 9 21.42% ['pdf_load_fuzzer']
pdfplumber.table.Table.extract.char_in_bbox 46 25 54.34% ['pdf_load_fuzzer']
pdfplumber.table.TableFinder.get_edges 46 0 0.0% []
pdfplumber.utils.text.WordMap.to_textmap 65 0 0.0% []
i.save 214 16 7.476% ['pdf_load_fuzzer']
pdfminer.jbig2.JBIG2StreamWriter.encode_retention_flags 32 0 0.0% []

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
[] []
logging [] []
importlib [] []
atheris [] []
binascii [] []
pdfminer.arcfour [] []
json [] []
[] []
pdfminer.latin_enc [] []
pygame [] []
pdfplumber.utils [] []
unittest [] []
pdfminer._saslprep [] []
pdfplumber.utils.text [] []
pypdfium2 [] []
pdfplumber.ctm [] []
io [] []
pdfminer.encodingdb [] []
math [] []
pdfminer.psexceptions [] []
pdfminer.pdfcolor [] []
unicodedata [] []
pdfplumber.utils.pdfinternals [] []
operator [] []
pdfminer.pdfdevice [] []
pdfminer.pdfparser [] []
charset_normalizer [] []
html [] []
pdfminer.psparser [] []
subprocess [] []
pdfminer.pdfexceptions [] []
stringprep [] []
contextlib [] []
os [] []
heapq [] []
pdfminer.data_structures [] []
base64 [] []
pdfplumber.convert [] []
pdfplumber.utils.generic [] []
pdfplumber [] []
...pdfplumber.fuzz.pdf_load_fuzzer ['pdf_load_fuzzer'] []
pdfminer.converter [] []
csv [] []
pdfminer.utils [] []
pdfminer.lzw [] []
pdfminer.casting [] []
pdfplumber.cli [] []
pdfminer.pdftypes [] []
pdfplumber.structure [] []
fuzz_helpers [] []
pdfminer.pdffont [] []
pdfminer [] []
itertools [] []
dataclasses [] []
pdfminer.settings [] []
pathlib [] []
re [] []
warnings [] []
typing [] []
pdfplumber._version [] []
pdfminer.jbig2 [] []
pdfminer.pdfpage [] []
sys [] []
shutil [] []
array [] []
pdfplumber.utils.exceptions [] []
pdfminer.ccitt [] []
PIL [] []
argparse [] []
zlib [] []
collections [] []
pdfplumber.repair [] []
pdfminer.pdfinterp [] []
pdfminer.image [] []
pdfminer.glyphlist [] []
pdfminer.layout [] []
struct [] []
pdfminer.pdfdocument [] []
pdfplumber.page [] []
functools [] []
pdfplumber.utils.clustering [] []
pdfminer.cmapdb [] []
cryptography [] []
pdfplumber.table [] []
pdfplumber.display [] []
gzip [] []
pdfminer.fontmetrics [] []
pdfminer.ascii85 [] []
pdfplumber.pdf [] []
inspect [] []
pdfplumber.utils.geometry [] []
pdfplumber.container [] []
pdfplumber._typing [] []
hashlib [] []
pdfminer.runlength [] []
pdfminer.high_level [] []

Directories in report

Directory