12 #ifndef SANITIZER_COMMON_INTERFACE_DEFS_H
13 #define SANITIZER_COMMON_INTERFACE_DEFS_H
19 #if !defined(__has_feature)
20 #define __has_feature(x) 0
157 const void *new_mid);
207 size_t out_buf_size);
210 char *out_buf,
size_t out_buf_size);
235 const void *s2,
size_t n,
int result);
245 const char *s2,
size_t n,
int result);
255 const char *s2,
size_t n,
int result);
264 const char *s2,
int result);
273 const char *s2,
int result);
282 const char *s2,
char *result);
285 const char *s2,
char *result);
288 const void *s1,
size_t len1,
289 const void *s2,
size_t len2,
void *result);
297 size_t max_number_of_contexts);
327 const void *bottom,
size_t size);
341 const void **bottom_old,
347 size_t module_path_len,
static __inline__ uint32_t
static __inline__ uint64_t
static __inline__ uint16_t
void __sanitizer_weak_hook_strcasestr(void *called_pc, const char *s1, const char *s2, char *result)
void __sanitizer_print_memory_profile(size_t top_percent, size_t max_number_of_contexts)
void __sanitizer_unaligned_store64(void *p, uint64_t x)
Stores a 64-bit unaligned value.
void __sanitizer_set_death_callback(void(*callback)(void))
Sets the callback to be called immediately before death on error.
void __sanitizer_sandbox_on_notify(__sanitizer_sandbox_arguments *args)
void __sanitizer_start_switch_fiber(void **fake_stack_save, const void *bottom, size_t size)
Notify ASan that a fiber switch has started (required only if implementing your own fiber library).
void __sanitizer_weak_hook_strncasecmp(void *called_pc, const char *s1, const char *s2, size_t n, int result)
Interceptor hook for strncasecmp().
void __sanitizer_set_report_fd(void *fd)
int __sanitizer_get_module_and_offset_for_pc(void *pc, char *module_path, size_t module_path_len, void **pc_offset)
const void * __sanitizer_contiguous_container_find_bad_address(const void *beg, const void *mid, const void *end)
Similar to __sanitizer_verify_contiguous_container() but also returns the address of the first improp...
uint64_t __sanitizer_unaligned_load64(const void *p)
Loads a 64-bit unaligned value.
void __sanitizer_report_error_summary(const char *error_summary)
void __sanitizer_weak_hook_memcmp(void *called_pc, const void *s1, const void *s2, size_t n, int result)
Interceptor hook for memcmp().
void __sanitizer_annotate_contiguous_container(const void *beg, const void *end, const void *old_mid, const void *new_mid)
Annotates the current state of a contiguous container, such as std::vector, std::string,...
void __sanitizer_weak_hook_strncmp(void *called_pc, const char *s1, const char *s2, size_t n, int result)
Interceptor hook for strncmp().
uint16_t __sanitizer_unaligned_load16(const void *p)
Loads a 16-bit unaligned value.
void __sanitizer_unaligned_store16(void *p, uint16_t x)
Stores a 16-bit unaligned value.
int __sanitizer_verify_contiguous_container(const void *beg, const void *mid, const void *end)
Returns true if the contiguous container [beg, end) is properly poisoned.
void __sanitizer_unaligned_store32(void *p, uint32_t x)
Stores a 32-bit unaligned value.
uint32_t __sanitizer_unaligned_load32(const void *p)
Loads a 32-bit unaligned value.
void __sanitizer_weak_hook_strstr(void *called_pc, const char *s1, const char *s2, char *result)
Interceptor hook for strstr().
void __sanitizer_print_stack_trace(void)
Prints the stack trace leading to this call (useful for calling from the debugger).
void __sanitizer_symbolize_global(void *data_ptr, const char *fmt, char *out_buf, size_t out_buf_size)
void __sanitizer_weak_hook_strcasecmp(void *called_pc, const char *s1, const char *s2, int result)
Interceptor hook for strcasecmp().
void __sanitizer_weak_hook_strcmp(void *called_pc, const char *s1, const char *s2, int result)
Interceptor hook for strcmp().
int __sanitizer_acquire_crash_state()
void __sanitizer_finish_switch_fiber(void *fake_stack_save, const void **bottom_old, size_t *size_old)
Notify ASan that a fiber switch has completed (required only if implementing your own fiber library).
void __sanitizer_set_report_path(const char *path)
void __sanitizer_weak_hook_memmem(void *called_pc, const void *s1, size_t len1, const void *s2, size_t len2, void *result)
void __sanitizer_symbolize_pc(void *pc, const char *fmt, char *out_buf, size_t out_buf_size)
__INTPTR_TYPE__ intptr_t
A signed integer type with the property that any valid pointer to void can be converted to this type,...
unsigned int coverage_max_block_size