fuzzer-sapi.h 1.4 KB

12345678910111213141516171819202122232425
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Johannes Schlüter <johanes@php.net> |
  14. | Stanislav Malyshev <stas@php.net> |
  15. +----------------------------------------------------------------------+
  16. */
  17. int fuzzer_init_php(void);
  18. int fuzzer_request_startup(void);
  19. void fuzzer_request_shutdown(void);
  20. void fuzzer_setup_dummy_frame(void);
  21. void fuzzer_call_php_func(const char *func_name, int nargs, char **params);
  22. void fuzzer_call_php_func_zval(const char *func_name, int nargs, zval *args);
  23. int fuzzer_do_request_from_buffer(
  24. char *filename, const char *data, size_t data_len, bool execute);