|
| 1 | +//===-- sanitizer_contiguous_container.cpp |
| 2 | +//-----------------------------------------------===// |
| 3 | +// |
| 4 | +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | +// See https://llvm.org/LICENSE.txt for license information. |
| 6 | +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | +// |
| 8 | +//===---------------------------------------------------------------------===// |
| 9 | +// |
| 10 | +// This file provides weak defs of __sanitizer*contiguous_container* functions |
| 11 | +// whose strong implementations can be defined in particular runtime libs |
| 12 | +// of sanitizers |
| 13 | +// |
| 14 | +//===---------------------------------------------------------------------===// |
| 15 | + |
| 16 | +#include "sanitizer_internal_defs.h" |
| 17 | + |
| 18 | +SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_annotate_contiguous_container, |
| 19 | + const void *, const void *, const void *, |
| 20 | + const void *) {} |
| 21 | + |
| 22 | +SANITIZER_INTERFACE_WEAK_DEF( |
| 23 | + void, __sanitizer_annotate_double_ended_contiguous_container, const void *, |
| 24 | + const void *, const void *, const void *, const void *, const void *) {} |
| 25 | + |
| 26 | +SANITIZER_INTERFACE_WEAK_DEF(void, |
| 27 | + __sanitizer_copy_contiguous_container_annotations, |
| 28 | + const void *, const void *, const void *, |
| 29 | + const void *) {} |
| 30 | + |
| 31 | +SANITIZER_INTERFACE_WEAK_DEF(int, __sanitizer_verify_contiguous_container, |
| 32 | + const void *, const void *, const void *) { |
| 33 | + return 0; |
| 34 | +} |
| 35 | + |
| 36 | +SANITIZER_INTERFACE_WEAK_DEF( |
| 37 | + int, __sanitizer_verify_double_ended_contiguous_container, const void *, |
| 38 | + const void *, const void *, const void *) { |
| 39 | + return 0; |
| 40 | +} |
| 41 | + |
| 42 | +SANITIZER_INTERFACE_WEAK_DEF(const void *, |
| 43 | + __sanitizer_contiguous_container_find_bad_address, |
| 44 | + const void *, const void *, const void *) { |
| 45 | + return nullptr; |
| 46 | +} |
| 47 | + |
| 48 | +SANITIZER_INTERFACE_WEAK_DEF( |
| 49 | + const void *, |
| 50 | + __sanitizer_double_ended_contiguous_container_find_bad_address, |
| 51 | + const void *, const void *, const void *, const void *) { |
| 52 | + return nullptr; |
| 53 | +} |
0 commit comments