Robert Swiecki | 47476f2 | 2017-09-28 15:45:02 +0200 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * honggfuzz - fetching input for fuzzing |
| 4 | * ----------------------------------------- |
| 5 | * |
| 6 | * Author: Robert Swiecki <swiecki@google.com> |
| 7 | * |
Robert Swiecki | 46288f7 | 2018-02-27 17:28:47 +0100 | [diff] [blame] | 8 | * Copyright 2010-2018 by Google Inc. All Rights Reserved. |
Robert Swiecki | 47476f2 | 2017-09-28 15:45:02 +0200 | [diff] [blame] | 9 | * |
| 10 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 11 | * not use this file except in compliance with the License. You may obtain |
| 12 | * a copy of the License at |
| 13 | * |
| 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | * |
| 16 | * Unless required by applicable law or agreed to in writing, software |
| 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 19 | * implied. See the License for the specific language governing |
| 20 | * permissions and limitations under the License. |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | #ifndef _HF_INPUT_H_ |
| 25 | #define _HF_INPUT_H_ |
| 26 | |
| 27 | #include "honggfuzz.h" |
| 28 | |
Robert Swiecki | 0f2c30a | 2018-01-13 14:03:39 +0100 | [diff] [blame] | 29 | extern void input_setSize(run_t* run, size_t sz); |
Robert Swiecki | 78633d1 | 2017-11-13 23:24:55 +0100 | [diff] [blame] | 30 | extern bool input_getNext(run_t* run, char* fname, bool rewind); |
Robert Swiecki | 4e595fb | 2017-10-11 17:26:51 +0200 | [diff] [blame] | 31 | extern bool input_init(honggfuzz_t* hfuzz); |
Robert Swiecki | 4e595fb | 2017-10-11 17:26:51 +0200 | [diff] [blame] | 32 | extern bool input_parseDictionary(honggfuzz_t* hfuzz); |
Robert Swiecki | 4e595fb | 2017-10-11 17:26:51 +0200 | [diff] [blame] | 33 | extern bool input_parseBlacklist(honggfuzz_t* hfuzz); |
arnow117 | c7566f6 | 2019-04-09 05:14:11 +0800 | [diff] [blame] | 34 | extern bool input_prepareDynamicInput(run_t* run, bool need_mangele); |
| 35 | extern bool input_prepareStaticFile(run_t* run, bool rewind, bool need_mangele); |
Robert Swiecki | 0f2c30a | 2018-01-13 14:03:39 +0100 | [diff] [blame] | 36 | extern bool input_prepareExternalFile(run_t* run); |
| 37 | extern bool input_postProcessFile(run_t* run); |
arnow117 | c7566f6 | 2019-04-09 05:14:11 +0800 | [diff] [blame] | 38 | extern bool input_feedbackMutateFile(run_t* run); |
Robert Swiecki | 47476f2 | 2017-09-28 15:45:02 +0200 | [diff] [blame] | 39 | |
Robert Swiecki | 4e595fb | 2017-10-11 17:26:51 +0200 | [diff] [blame] | 40 | #endif /* ifndef _HF_INPUT_H_ */ |