xref: /aosp_15_r20/external/webrtc/tools_webrtc/ubsan/vptr_suppressions.txt (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker#############################################################################
2*d9f75844SAndroid Build Coastguard Worker# UBSan vptr ignorelist.
3*d9f75844SAndroid Build Coastguard Worker# Function and type based blacklisting use a mangled name, and it is especially
4*d9f75844SAndroid Build Coastguard Worker# tricky to represent C++ types. For now, any possible changes by name manglings
5*d9f75844SAndroid Build Coastguard Worker# are simply represented as wildcard expressions of regexp, and thus it might be
6*d9f75844SAndroid Build Coastguard Worker# over-blacklisted.
7*d9f75844SAndroid Build Coastguard Worker#
8*d9f75844SAndroid Build Coastguard Worker# Please think twice before you add or remove these rules.
9*d9f75844SAndroid Build Coastguard Worker#
10*d9f75844SAndroid Build Coastguard Worker# This is a stripped down copy of Chromium's vptr_blacklist.txt, to enable
11*d9f75844SAndroid Build Coastguard Worker# adding WebRTC-specific ignorelist entries.
12*d9f75844SAndroid Build Coastguard Worker
13*d9f75844SAndroid Build Coastguard Worker#############################################################################
14*d9f75844SAndroid Build Coastguard Worker# Using raw pointer values.
15*d9f75844SAndroid Build Coastguard Worker#
16*d9f75844SAndroid Build Coastguard Worker# A raw pointer value (16) is used to infer the field offset by
17*d9f75844SAndroid Build Coastguard Worker# GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET.
18*d9f75844SAndroid Build Coastguard Worker
19*d9f75844SAndroid Build Coastguard Workersrc:*/third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc
20*d9f75844SAndroid Build Coastguard Workersrc:*/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc
21*d9f75844SAndroid Build Coastguard Workersrc:*/third_party/protobuf/src/google/protobuf/descriptor.pb.cc
22*d9f75844SAndroid Build Coastguard Worker
23*d9f75844SAndroid Build Coastguard Worker#############################################################################
24*d9f75844SAndroid Build Coastguard Worker# UBsan goes into an infinite recursion when __dynamic_cast instrumented with
25*d9f75844SAndroid Build Coastguard Worker# "vptr". See crbug.com/609786.
26*d9f75844SAndroid Build Coastguard Worker
27*d9f75844SAndroid Build Coastguard Workersrc:*/third_party/libc\+\+abi/trunk/src/private_typeinfo.cpp
28