File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88#include < optional>
99#include < Python.h>
1010
11- #include " python_coverage.h"
12-
1311#ifndef PYTHON_HARNESS_PATH
1412#error "Define PYTHON_HARNESS_PATH"
1513#endif
Original file line number Diff line number Diff line change 11#pragma once
2+ #include <stdint.h>
3+ #include <stddef.h>
24
35#define COVERAGE_ARRAY_SIZE 65536
46
5- extern "C" {
6- __attribute__((section ("__libfuzzer_extra_counters" )))
7- uint8_t coverage_counter [COVERAGE_ARRAY_SIZE ];
8- }
7+ __attribute__((section ("__libfuzzer_extra_counters" )))
8+ uint8_t coverage_counter [COVERAGE_ARRAY_SIZE ];
99
10- extern "C" void global_record_code_coverage (void * codeptr , int lasti )
10+ void fuzzer_record_code_coverage (void * codeptr , int lasti )
1111{
1212 coverage_counter [ ((size_t )(codeptr ) ^ (size_t )(lasti )) % COVERAGE_ARRAY_SIZE ] = 1 ;
1313}
You can’t perform that action at this time.
0 commit comments