blob: 1434eb74bc93209ad0586c1f2f957660be2064a0 [file] [log] [blame]
mtklein0590fa52016-09-01 07:06:54 -07001/*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "include/core/SkTypes.h"
mtklein0590fa52016-09-01 07:06:54 -07009
10#if !defined(__has_feature)
11 #define __has_feature(x) 0
12#endif
13
14#if __has_feature(address_sanitizer)
15
16extern "C" {
17
18 const char* __lsan_default_suppressions();
19 const char* __lsan_default_suppressions() {
Mike Klein5492a0c2020-04-08 08:25:54 -050020 return "leak:libfontconfig\n" // FontConfig looks like it leaks, but it doesn't.
21 "leak:libfreetype\n" // Unsure, appeared upgrading Debian 9->10.
22 "leak:libGLX_nvidia.so\n" // For NVidia driver.
23 "leak:libnvidia-glcore.so\n" // For NVidia driver.
24 "leak:libnvidia-tls.so\n" // For NVidia driver.
25 "leak:terminator_CreateDevice\n" // Intel Vulkan drivers.
mtklein0590fa52016-09-01 07:06:54 -070026 ;
27 }
28
29}
30
31#endif