"Fossies" - the Fresh Open Source Software Archive

Member "honggfuzz-2.2/input.h" (23 Apr 2020, 1994 Bytes) of package /linux/privat/honggfuzz-2.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "input.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.1_vs_2.2.

    1 /*
    2  *
    3  * honggfuzz - fetching input for fuzzing
    4  * -----------------------------------------
    5  *
    6  * Author: Robert Swiecki <swiecki@google.com>
    7  *
    8  * Copyright 2010-2018 by Google Inc. All Rights Reserved.
    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 <limits.h>
   28 
   29 #include "honggfuzz.h"
   30 
   31 extern void input_setSize(run_t* run, size_t sz);
   32 extern bool input_getDirStatsAndRewind(honggfuzz_t* hfuzz);
   33 extern bool input_getNext(run_t* run, char fname[PATH_MAX], bool rewind);
   34 extern bool input_init(honggfuzz_t* hfuzz);
   35 extern bool input_parseDictionary(honggfuzz_t* hfuzz);
   36 extern void input_freeDictionary(honggfuzz_t* hfuzz);
   37 extern bool input_parseBlacklist(honggfuzz_t* hfuzz);
   38 extern bool input_writeCovFile(const char* dir, dynfile_t* dynfile);
   39 extern void input_addDynamicInput(run_t* run);
   40 extern bool input_inDynamicCorpus(run_t* run, const char* fname);
   41 extern void input_renumerateInputs(honggfuzz_t* hfuzz);
   42 extern bool input_prepareDynamicInput(run_t* run, bool needs_mangle);
   43 extern size_t input_getRandomInputAsBuf(run_t* run, const uint8_t** buf);
   44 extern bool input_prepareStaticFile(run_t* run, bool rewind, bool needs_mangle);
   45 extern bool input_removeStaticFile(const char* dir, const char* name);
   46 extern bool input_prepareExternalFile(run_t* run);
   47 extern bool input_postProcessFile(run_t* run, const char* cmd);
   48 extern bool input_prepareDynamicFileForMinimization(run_t* run);
   49 
   50 #endif /* ifndef _HF_INPUT_H_ */