mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
23 lines
603 B
C
23 lines
603 B
C
|
/*
|
||
|
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <AK/Platform.h>
|
||
|
|
||
|
#ifdef HAS_ADDRESS_SANITIZER
|
||
|
extern "C" {
|
||
|
char const* __lsan_default_suppressions();
|
||
|
char const* __lsan_default_suppressions()
|
||
|
{
|
||
|
// Both Skia and Chromium suppress false positive FontConfig leaks
|
||
|
// https://github.com/google/skia/blob/main/tools/LsanSuppressions.cpp#L20
|
||
|
// https://chromium.googlesource.com/chromium/src/build/+/master/sanitizers/lsan_suppressions.cc#25
|
||
|
return "leak:FcPatternObjectInsertElt";
|
||
|
}
|
||
|
}
|
||
|
#endif
|