Files
openvino/tests/fuzz
Andrey Somsikov 7f8d3aa638 Catch std::except in fuzz tests (#4610)
Fuzz tests must catch all expected exceptions from IE. IE is using C++ std
library which may raise standard exceptions which IE pass through.
2021-03-06 13:06:40 +03:00
..
2021-01-11 14:48:27 +03:00

Fuzzing Test Suite

This test suite contains fuzzing tests for libFuzzer fuzzing engine.

Getting Started

Each fuzzing test is an executable. It can run fuzzing to search for new failures and save reproducer in a file. You can later run a fuzzing test with a reproducer to debug a failure found.

Pre-requisites

There are no special pre-requisites to reproduce and debug failures.

To run fuzzing you will need LLVM components:

  • Clang and co.
  • libFuzzer
  • lld (linker)
  • libc++

Reproducing Failure Found by Fuzzing

  1. Build fuzz test target:
cmake -DENABLE_TESTS=ON .. && ninja fuzz
  1. Run fuzzing test passing a failure reproducer as a command-line argument:
./read_network-fuzzer crash-reproducer