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 | 4.59k | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
9 | 4.59k | const FuzzerTemporaryFile file(data, size); |
10 | 4.59k | try { |
11 | 4.59k | cv::Mat matrix = cv::imread(file.filename()); |
12 | 4.59k | } catch (cv::Exception e) { |
13 | // Do nothing. | |
14 | 3 | } |
15 | 4.59k | return 0; |
16 | 4.59k | } |
17 |