/src/libvips/fuzz/config.h
Line | Count | Source |
1 | | #pragma once |
2 | | |
3 | | // `#embed` requires C23 support. However, this file is only included when |
4 | | // building with `-Dfuzz=true`, so it ought to be safe. |
5 | | #ifdef __clang__ |
6 | | #pragma clang diagnostic ignored "-Wc23-extensions" |
7 | | #endif |
8 | | |
9 | | extern "C" const char * |
10 | | __asan_default_suppressions() |
11 | 0 | { |
12 | 0 | static const char asan_suppressions[] = { |
13 | 0 | #embed "../suppressions/asan.supp" |
14 | 0 | , 0 // ensure null-terminated string |
15 | 0 | }; |
16 | |
|
17 | 0 | return asan_suppressions; |
18 | 0 | } |
19 | | |
20 | | extern "C" const char * |
21 | | __lsan_default_suppressions() |
22 | 0 | { |
23 | 0 | static const char lsan_suppressions[] = { |
24 | 0 | #embed "../suppressions/lsan.supp" |
25 | 0 | , 0 |
26 | 0 | }; |
27 | |
|
28 | 0 | return lsan_suppressions; |
29 | 0 | } |
30 | | |
31 | | extern "C" const char * |
32 | | __tsan_default_suppressions() |
33 | 0 | { |
34 | 0 | static const char tsan_suppressions[] = { |
35 | 0 | #embed "../suppressions/tsan.supp" |
36 | 0 | , 0 |
37 | 0 | }; |
38 | |
|
39 | 0 | return tsan_suppressions; |
40 | 0 | } |
41 | | |
42 | | // Requires https://github.com/llvm/llvm-project/pull/194862 |
43 | | extern "C" const char * |
44 | | __ubsan_default_suppressions() |
45 | 0 | { |
46 | 0 | static const char ubsan_suppressions[] = { |
47 | 0 | #embed "../suppressions/ubsan.supp" |
48 | 0 | , 0 |
49 | 0 | }; |
50 | |
|
51 | 0 | return ubsan_suppressions; |
52 | 0 | } |