parent
f52b717db3
commit
b42ea7ef21
|
@ -47,7 +47,8 @@ void __sanitizer_syscall_post_waitpid(long res, int pid, int *status,
|
|||
int options);
|
||||
void __sanitizer_syscall_post_clock_gettime(long res, int clk_id, void *tp);
|
||||
void __sanitizer_syscall_post_clock_getres(long res, int clk_id, void *tp);
|
||||
void __sanitizer_syscall_post_read(long res, unsigned int fd, void *buf, size_t count);
|
||||
void __sanitizer_syscall_post_read(long res, unsigned int fd, void *buf,
|
||||
size_t count);
|
||||
|
||||
// And now a few syscalls we don't handle yet.
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ extern "C" {
|
|||
// you have intentional memory leaks in your shutdown code). Calling this
|
||||
// function overrides end-of-process leak checking; it must be called at
|
||||
// most once per process. This function will terminate the process if there
|
||||
// are memory leaks and the exit_code flag is non-zero.
|
||||
// are memory leaks and the exit_code flag is non-zero.
|
||||
void __lsan_do_leak_check();
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
|
|
@ -1127,7 +1127,9 @@ class LargeMmapAllocator {
|
|||
CHECK(IsAligned(p, page_size_));
|
||||
return reinterpret_cast<Header*>(p - page_size_);
|
||||
}
|
||||
Header *GetHeader(const void *p) { return GetHeader(reinterpret_cast<uptr>(p)); }
|
||||
Header *GetHeader(const void *p) {
|
||||
return GetHeader(reinterpret_cast<uptr>(p));
|
||||
}
|
||||
|
||||
void *GetUser(Header *h) {
|
||||
CHECK(IsAligned((uptr)h, page_size_));
|
||||
|
|
|
@ -169,7 +169,6 @@ PRE_SYSCALL(read)(unsigned int fd, void *buf, uptr count) {
|
|||
POST_SYSCALL(read)(long res, unsigned int fd, void *buf, uptr count) {
|
||||
if (res > 0 && buf) POST_WRITE(buf, res);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
#undef PRE_SYSCALL
|
||||
|
|
|
@ -40,8 +40,8 @@ cd ${LLVM_CHECKOUT}
|
|||
# LLVM Instrumentation
|
||||
LLVM_INSTRUMENTATION=lib/Transforms/Instrumentation
|
||||
LLVM_LINT_FILTER=-,+whitespace
|
||||
${CPPLINT} --filter=${LLVM_LINT_FILTER} ${LLVM_INSTRUMENTATION}/*Sanitizer.cpp \
|
||||
${LLVM_INSTRUMENTATION}/BlackList.*
|
||||
${CPPLINT} --filter=${LLVM_LINT_FILTER} lib/Transforms/Instrumentation/*Sanitizer.cpp \
|
||||
lib/Transforms/Utils/SpecialCaseList.cpp
|
||||
|
||||
COMPILER_RT=projects/compiler-rt
|
||||
|
||||
|
|
Loading…
Reference in New Issue