tor-browser

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

jsrtfuzzing.h (917B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 * vim: set ts=8 sts=2 et sw=2 tw=80:
      3 * This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 // jsrtfuzzing.h - Functionality for JS runtime fuzzing
      8 
      9 #ifndef shell_jsrtfuzzing_h
     10 #define shell_jsrtfuzzing_h
     11 
     12 #include "vm/JSContext.h"
     13 
     14 namespace js {
     15 namespace shell {
     16 
     17 // This is the entry point of the JS runtime fuzzing code from the JS shell
     18 int FuzzJSRuntimeStart(JSContext* cx, int* argc, char*** argv);
     19 
     20 // These are the traditional libFuzzer-style functions for initialization
     21 // and fuzzing iteration.
     22 int FuzzJSRuntimeInit(int* argc, char*** argv);
     23 int FuzzJSRuntimeFuzz(const uint8_t* buf, size_t size);
     24 
     25 }  // namespace shell
     26 }  // namespace js
     27 
     28 #endif /* shell_jsrtfuzzing_h */