/src/readnetfromtensorflow_fuzzer.cc
Line | Count | Source |
1 | | // Licensed under the Apache License, Version 2.0 (the "License"); |
2 | | // you may not use this file except in compliance with the License. |
3 | | // You may obtain a copy of the License at |
4 | | // |
5 | | // http://www.apache.org/licenses/LICENSE-2.0 |
6 | | // |
7 | | // Unless required by applicable law or agreed to in writing, software |
8 | | // distributed under the License is distributed on an "AS IS" BASIS, |
9 | | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
10 | | // See the License for the specific language governing permissions and |
11 | | // limitations under the License. |
12 | | |
13 | | /* |
14 | | * This fuzzer is generated by UTopia project based on TEST(Test_Tensorflow, read_inception). |
15 | | * (UTopia Project: https://github.com/Samsung/UTopia) |
16 | | */ |
17 | | #include <opencv2/dnn/dnn.hpp> |
18 | | |
19 | | using namespace cv; |
20 | | using namespace dnn; |
21 | | |
22 | 15.0k | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
23 | 15.0k | try { |
24 | 15.0k | readNetFromTensorflow((const char*)data, size); |
25 | 15.0k | } catch (std::exception &e) {} |
26 | 15.0k | return 0; |
27 | 15.0k | } |