blob: ec39602597a62b3f82c18643fa4f82d0c4646f76 [file] [log] [blame]
Anestis Bechtsoudise5f09f82016-12-27 16:06:05 +02001/*
2 *
3 * honggfuzz - sanitizers configuration
4 * -----------------------------------------------
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may
7 * not use this file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15 * implied. See the License for the specific language governing
16 * permissions and limitations under the License.
17 *
18 */
19
20#ifndef _HF_SANITIZERS_H_
21#define _HF_SANITIZERS_H_
22
23#define HF_MSAN_EXIT_CODE 103
24#define HF_ASAN_EXIT_CODE 104
25#define HF_UBSAN_EXIT_CODE 105
26
27/* Prefix for sanitizer report files */
28#define kLOGPREFIX "HF.sanitizer.log"
29
30/* Directory in workspace to store sanitizer coverage data */
31#define _HF_SANCOV_DIR "HF_SANCOV"
32
33extern bool sanitizers_Init(honggfuzz_t * hfuzz);
34
35extern bool sanitizers_prepareExecve(honggfuzz_t * hfuzz);
36
37#endif /* _HF_SANITIZERS_H_ */