Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / ubsan_vptr / blacklist.txt
1 #############################################################################
2 # UBSan vptr blacklist.
3 # Function and type based blacklisting use a mangled name, and it is especially
4 # tricky to represent C++ types. For now, any possible changes by name manglings
5 # are simply represented as wildcard expressions of regexp, and thus it might be
6 # over-blacklisted.
7
8 #############################################################################
9 # Identical layouts.
10 # If base and derived classes have identifical memory layouts (i.e., the same
11 # object size) and both have no virtual functions, we blacklist them as there
12 # would be not much security implications.
13
14 fun:*LifecycleNotifier*addObserver*
15 fun:*LifecycleNotifier*removeObserver*
16 fun:*toWebInputElement*
17 type:*base*MessageLoopForIO*
18 type:*BlockRefType*
19 type:*SkAutoTUnref*
20 type:*WDResult*
21 type:*ExecutionContext*
22 type:*WebInputElement*
23 type:*WebFormControlElement*
24
25 # Avoid identical layout cases for 86 different classes in InspectorTypeBuilder,
26 # all of which are guarded using COMPILER_ASSERT on the object size. Two more
27 # types are also blacklisted due to the template class (JSONArray <-> Array<T>).
28
29 src:*InspectorTypeBuilder.h*
30 type:*TypeBuilder*
31 type:*JSONArray*
32
33 #############################################################################
34 # Base class's constructor accesses a derived class's member.
35
36 fun:*DoublyLinkedListNode*
37 type:*content*WebUIExtensionData*
38 type:*v8*internal*CompilationInfo*
39
40 # RenderFrameObserverTracker<T>::RenderFrameObserverTracker()
41 fun:*content*RenderFrameObserverTracker*RenderFrame*
42
43 # RenderViewObserverTracker<T>::RenderViewObserverTracker()
44 fun:*content*RenderViewObserverTracker*RenderView*
45
46 #############################################################################
47 # Base class's destructor accesses a derived class.
48
49 fun:*DatabaseContext*contextDestroyed*
50
51 #############################################################################
52 # static_cast into itself in the constructor.
53
54 fun:*RefCountedGarbageCollected*makeKeepAlive*
55 fun:*ThreadSafeRefCountedGarbageCollected*makeKeepAlive*
56
57 #############################################################################
58 # Accessing data in destructurors where the class has virtual inheritances.
59
60 type:*content*RenderWidgetHost*
61
62 # Mangled name for content::RenderViewHostImpl::~RenderViewHostImpl()
63 fun:*content*RenderViewHostImpl*
64
65 #############################################################################
66 # Using raw pointer values.
67 #
68 # A raw pointer value (16) is used to infer the field offset by
69 # GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET.
70
71 src:*/third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc
72 src:*/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc
73 src:*/third_party/protobuf/src/google/protobuf/descriptor.pb.cc
74
75 #############################################################################
76 # Avoid link errors.
77 # Ubsan vptr needs typeinfo on the target class, but it looks like typeinfo is
78 # not avaiable if the class is not exported.  For now, simply blacklisted to
79 # avoid link errors; e.g., undefined reference to 'typeinfo for [CLASS_NAME]'.
80
81 # obj/ppapi/libppapi_proxy.a(obj/ppapi/proxy/ppapi_proxy.proxy_channel.o):../../ppapi/proxy/proxy_channel.cc:__unnamed_53: error: undefined reference to 'typeinfo for IPC::TestSink'
82 src:*/ppapi/proxy/proxy_channel.cc
83
84 # obj/chrome/libbrowser.a(obj/chrome/browser/net/browser.predictor.o):../../chrome/browser/net/predictor.cc:__unnamed_577: error: undefined reference to 'typeinfo for ProxyAdvisor'
85 src:*/chrome/browser/net/predictor.cc
86
87 # obj/third_party/pdfium/libfpdfapi.a(obj/third_party/pdfium/core/src/fpdfapi/fpdf_render/fpdfapi.fpdf_render_text.o):../../third_party/pdfium/core/src/fpdfapi/fpdf_render/:__unnamed_360: error: undefined reference to 'typeinfo for CPDF_InlineImages'
88 src:*/third_party/pdfium/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp
89
90 # obj/third_party/libwebm/libwebm.a(obj/third_party/libwebm/source/libwebm.mkvmuxer.o)(.data.rel..L__unnamed_2+0x18): error: undefined reference to 'typeinfo for mkvparser::IMkvReader'
91 src:*/third_party/libwebm/source/mkvmuxer.cpp