tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mutate.h (756B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef BASE_MUTATE_H_
      6 #define BASE_MUTATE_H_
      7 
      8 #include <cstddef>
      9 #include <cstdint>
     10 #include <vector>
     11 
     12 extern "C" size_t LLVMFuzzerMutate(uint8_t* data, size_t size, size_t maxSize);
     13 extern "C" size_t LLVMFuzzerCustomMutator(uint8_t* data, size_t size,
     14                                          size_t maxSize, unsigned int seed);
     15 
     16 typedef std::vector<decltype(LLVMFuzzerCustomMutator)*> Mutators;
     17 
     18 size_t CustomMutate(Mutators mutators, uint8_t* data, size_t size,
     19                    size_t maxSize, unsigned int seed);
     20 
     21 #endif  // BASE_MUTATE_H_