Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
bin
address_sanitizer.cc
Go to the documentation of this file.
1
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4
5
#include "
platform/globals.h
"
6
7
#if defined(DART_HOST_OS_LINUX) || defined(DART_HOST_OS_MACOSX)
8
#if defined(__has_feature)
9
#if __has_feature(address_sanitizer)
10
#if !defined(GOOGLE3)
11
12
const
char
* kAsanDefaultOptions =
13
"strict_memcmp=0 symbolize=0 check_printf=1 use_sigaltstack=1 "
14
"detect_leaks=0 fast_unwind_on_fatal=1 handle_segv=0 "
;
15
16
extern
"C"
__attribute__
((no_sanitize_address))
17
__attribute__
((visibility(
"default"
)))
18
// The function isn't referenced from the executable itself. Make sure it isn't
19
// stripped by the linker.
20
__attribute__
((used)) const
char
*
21
__asan_default_options() {
22
return
kAsanDefaultOptions;
23
}
24
25
#endif
// !defined(GOOGLE3)
26
#endif
// __has_feature(address_sanitizer)
27
#endif
// defined(__has_feature)
28
#endif
// defined(DART_HOST_OS_LINUX) || defined(DART_HOST_OS_MACOSX)
__attribute__
__attribute__((visibility("default"))) int RunBenchmarks(int argc
globals.h
Generated on Sun Jun 23 2024 21:55:22 for Flutter Engine by
1.9.4