|
|
|
@ -228,7 +228,6 @@ bool Checker::check_access(const ToCheck & item, void *base, type_identity *iden
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
#undef FAIL_PTR
|
|
|
|
|
#undef UNINIT_PTR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool Checker::check_vtable(const ToCheck & item, void *vtable, type_identity *identity)
|
|
|
|
@ -388,6 +387,12 @@ void Checker::check_dispatch(const ToCheck & item)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (reinterpret_cast<uintptr_t>(item.ptr) == UNINIT_PTR)
|
|
|
|
|
{
|
|
|
|
|
// allow uninitialized raw pointers
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!check_access(item, item.ptr, item.identity) && item.identity->type() != IDTYPE_GLOBAL)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|