Home
last modified time | relevance | path

Searched refs:Vtable (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_type_hash_itanium.cpp197 VtablePrefix *getVtablePrefix(void *Vtable) { in getVtablePrefix() argument
198 Vtable = ptrauth_auth_data(Vtable, ptrauth_key_cxx_vtable_pointer, 0); in getVtablePrefix()
199 VtablePrefix *Vptr = reinterpret_cast<VtablePrefix*>(Vtable); in getVtablePrefix()
223 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in checkDynamicType() local
224 if (!Vtable) in checkDynamicType()
226 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) { in checkDynamicType()
233 dynamic_cast<abi::__class_type_info*>(Vtable->TypeInfo); in checkDynamicType()
238 if (!isDerivedFromAtOffset(Derived, Base, -Vtable->Offset)) in checkDynamicType()
249 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in getDynamicTypeInfoFromVtable() local
250 if (!Vtable) in getDynamicTypeInfoFromVtable()
[all …]
H A Dubsan_handlers_cxx.cpp98 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable, in __ubsan_handle_cfi_bad_type() argument
108 ? getDynamicTypeInfoFromVtable((void *)Vtable) in __ubsan_handle_cfi_bad_type()
136 << Data->Type << CheckKindStr << (void *)Vtable; in __ubsan_handle_cfi_bad_type()
140 Diag(Vtable, DL_Note, ET, "invalid vtable"); in __ubsan_handle_cfi_bad_type()
142 Diag(Vtable, DL_Note, ET, "vtable is of type %0") in __ubsan_handle_cfi_bad_type()
147 const char *DstModule = Symbolizer::GetOrInit()->GetModuleNameForPc(Vtable); in __ubsan_handle_cfi_bad_type()
H A Dubsan_type_hash.h46 DynamicTypeInfo getDynamicTypeInfoFromVtable(void *Vtable);
H A Dubsan_handlers.h239 CFICheckFailData *Data, ValueHandle Vtable, bool ValidVtable,
H A Dubsan_handlers.cpp875 ValueHandle Vtable, in __ubsan_handle_cfi_bad_type_default() argument
885 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
889 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_type_hash_itanium.cc197 VtablePrefix *getVtablePrefix(void *Vtable) { in getVtablePrefix() argument
198 VtablePrefix *Vptr = reinterpret_cast<VtablePrefix*>(Vtable); in getVtablePrefix()
222 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in checkDynamicType() local
223 if (!Vtable) in checkDynamicType()
225 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) { in checkDynamicType()
232 dynamic_cast<abi::__class_type_info*>(Vtable->TypeInfo); in checkDynamicType()
237 if (!isDerivedFromAtOffset(Derived, Base, -Vtable->Offset)) in checkDynamicType()
248 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in getDynamicTypeInfoFromVtable() local
249 if (!Vtable) in getDynamicTypeInfoFromVtable()
251 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) in getDynamicTypeInfoFromVtable()
[all …]
H A Dubsan_handlers_cxx.cc98 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable, in __ubsan_handle_cfi_bad_type() argument
108 ? getDynamicTypeInfoFromVtable((void *)Vtable) in __ubsan_handle_cfi_bad_type()
136 << Data->Type << CheckKindStr << (void *)Vtable; in __ubsan_handle_cfi_bad_type()
140 Diag(Vtable, DL_Note, ET, "invalid vtable"); in __ubsan_handle_cfi_bad_type()
142 Diag(Vtable, DL_Note, ET, "vtable is of type %0") in __ubsan_handle_cfi_bad_type()
147 const char *DstModule = Symbolizer::GetOrInit()->GetModuleNameForPc(Vtable); in __ubsan_handle_cfi_bad_type()
H A Dubsan_type_hash.h45 DynamicTypeInfo getDynamicTypeInfoFromVtable(void *Vtable);
H A Dubsan_handlers.cc752 ValueHandle Vtable, in __ubsan_handle_cfi_bad_type_default() argument
762 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
766 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
H A Dubsan_handlers.h226 CFICheckFailData *Data, ValueHandle Vtable, bool ValidVtable,
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_type_hash_itanium.cc198 VtablePrefix *getVtablePrefix(void *Vtable) { in getVtablePrefix() argument
199 VtablePrefix *Vptr = reinterpret_cast<VtablePrefix*>(Vtable); in getVtablePrefix()
223 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in checkDynamicType() local
224 if (!Vtable) in checkDynamicType()
226 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) { in checkDynamicType()
233 dynamic_cast<abi::__class_type_info*>(Vtable->TypeInfo); in checkDynamicType()
238 if (!isDerivedFromAtOffset(Derived, Base, -Vtable->Offset)) in checkDynamicType()
249 VtablePrefix *Vtable = getVtablePrefix(VtablePtr); in getDynamicTypeInfoFromVtable() local
250 if (!Vtable) in getDynamicTypeInfoFromVtable()
252 if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop) in getDynamicTypeInfoFromVtable()
[all …]
H A Dubsan_handlers_cxx.cc99 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable, in __ubsan_handle_cfi_bad_type() argument
109 ? getDynamicTypeInfoFromVtable((void *)Vtable) in __ubsan_handle_cfi_bad_type()
137 << Data->Type << CheckKindStr << (void *)Vtable; in __ubsan_handle_cfi_bad_type()
141 Diag(Vtable, DL_Note, ET, "invalid vtable"); in __ubsan_handle_cfi_bad_type()
143 Diag(Vtable, DL_Note, ET, "vtable is of type %0") in __ubsan_handle_cfi_bad_type()
148 const char *DstModule = Symbolizer::GetOrInit()->GetModuleNameForPc(Vtable); in __ubsan_handle_cfi_bad_type()
H A Dubsan_type_hash.h47 DynamicTypeInfo getDynamicTypeInfoFromVtable(void *Vtable);
H A Dubsan_handlers.h222 CFICheckFailData *Data, ValueHandle Vtable, bool ValidVtable,
H A Dubsan_handlers.cc762 ValueHandle Vtable, in __ubsan_handle_cfi_bad_type_default() argument
772 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
776 void __ubsan_handle_cfi_bad_type(CFICheckFailData *Data, ValueHandle Vtable,
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGObjCGNU.cpp2441 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType() local
2442 if (!Vtable) { in GetEHType()
2443 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2449 llvm::ConstantExpr::getGetElementPtr(Vtable->getValueType(), Vtable, Two), in GetEHType()
/netbsd-src/external/gpl3/binutils/dist/gas/
H A DChangeLog-98992435 * config/tc-d10v.c (tc_gen_reloc): Handle Vtable relocs.
2436 (md_apply_fix3): Handle Vtable relocs.
/netbsd-src/external/gpl3/binutils.old/dist/gas/
H A DChangeLog-98992435 * config/tc-d10v.c (tc_gen_reloc): Handle Vtable relocs.
2436 (md_apply_fix3): Handle Vtable relocs.
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A DChangeLog-20022980 (build_base_path): Vtable contents are constant.