annotate libsanitizer/sanitizer_common/sanitizer_coverage_win_weak_interception.cc @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- sanitizer_coverage_win_weak_interception.cc -----------------------===//
kono
parents:
diff changeset
2 //
kono
parents:
diff changeset
3 // This file is distributed under the University of Illinois Open Source
kono
parents:
diff changeset
4 // License. See LICENSE.TXT for details.
kono
parents:
diff changeset
5 //
kono
parents:
diff changeset
6 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
7 // This module should be included in Sanitizer Coverage when it implemented as a
kono
parents:
diff changeset
8 // shared library on Windows (dll), in order to delegate the calls of weak
kono
parents:
diff changeset
9 // functions to the implementation in the main executable when a strong
kono
parents:
diff changeset
10 // definition is provided.
kono
parents:
diff changeset
11 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
12 #ifdef SANITIZER_DYNAMIC
kono
parents:
diff changeset
13 #include "sanitizer_win_weak_interception.h"
kono
parents:
diff changeset
14 #include "sanitizer_interface_internal.h"
kono
parents:
diff changeset
15 #include "sancov_flags.h"
kono
parents:
diff changeset
16 // Check if strong definitions for weak functions are present in the main
kono
parents:
diff changeset
17 // executable. If that is the case, override dll functions to point to strong
kono
parents:
diff changeset
18 // implementations.
kono
parents:
diff changeset
19 #define INTERFACE_FUNCTION(Name)
kono
parents:
diff changeset
20 #define INTERFACE_WEAK_FUNCTION(Name) INTERCEPT_SANITIZER_WEAK_FUNCTION(Name)
kono
parents:
diff changeset
21 #include "sanitizer_coverage_interface.inc"
kono
parents:
diff changeset
22 #endif // SANITIZER_DYNAMIC