clang8 integer sanitizer suppressions

This commit is contained in:
Igor Smolkovic 2019-04-05 14:02:14 +02:00
parent 0a23881341
commit c8717a370f

View file

@ -71,6 +71,12 @@ namespace utf8
template <typename octet_iterator>
octet_iterator append(uint32_t cp, octet_iterator result)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunknown-sanitizers"
__attribute__((no_sanitize("implicit-integer-sign-change")))
#pragma clang diagnostic pop
#endif
{
if (!utf8::internal::is_code_point_valid(cp))
throw invalid_code_point(cp);