File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ add_compiler_rt_object_libraries(RTBsan
55
55
CFLAGS ${BSAN_CFLAGS}
56
56
DEPS ${BSAN_DEPS} )
57
57
58
- if (! APPLE )
58
+ if (NOT APPLE )
59
59
add_compiler_rt_object_libraries(RTBsan_preinit
60
60
OS ${SANITIZER_COMMON_SUPPORTED_OS}
61
61
ARCHS ${BSAN_SUPPORTED_ARCH}
86
86
STATIC
87
87
ARCHS ${BSAN_SUPPORTED_ARCH}
88
88
OBJECT_LIBS RTBsan
89
+ RTBsan_preinit
89
90
${BSAN_COMMON_RUNTIME_OBJECT_LIBS}
90
91
LINK_FLAGS ${BSAN_LINK_FLAGS}
91
92
CFLAGS ${BSAN_CFLAGS}
Original file line number Diff line number Diff line change @@ -135,7 +135,11 @@ void InitializeBsanInterceptors() {
135
135
static bool was_called_once;
136
136
CHECK (!was_called_once);
137
137
was_called_once = true ;
138
+ BSAN_INTERCEPT_FUNC (malloc);
139
+ BSAN_INTERCEPT_FUNC (free);
140
+
138
141
InitializeCommonInterceptors ();
142
+
139
143
}
140
144
141
145
} // namespace __bsan
You can’t perform that action at this time.
0 commit comments