Line | Count | Source |
1 | #include <cstddef> | |
2 | #include <cstdint> | |
3 | #include <unistd.h> | |
4 | ||
5 | #include <opencv2/opencv.hpp> | |
6 | #include "fuzzer_temp_file.h" | |
7 | ||
8 | 420 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
9 | 420 | const FuzzerTemporaryFile file(data, size); |
10 | 420 | try { |
11 | 420 | cv::Mat matrix = cv::imread(file.filename()); |
12 | 420 | } catch (cv::Exception e) { |
13 | // Do nothing. | |
14 | 1 | } |
15 | 420 | return 0; |
16 | 420 | } |
17 |