don't check bad pointers

develop
Ben Lubar 2020-02-11 17:33:33 -06:00
parent 195b933c61
commit 40bd55c558
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 3 additions and 3 deletions

@ -676,10 +676,10 @@ void Checker::check_vector(const ToCheck & item, type_identity *item_identity, b
FAIL("vector capacity is non-integer (" << (ucapacity / item_size) << " items plus " << (ucapacity % item_size) << " bytes)");
}
if (item.path.back() == ".bad" && pointer)
if (item.path.back() == ".bad")
{
// check pointers but don't check contents
item_identity = nullptr;
// don't check contents
local_ok = false;
}
if (local_ok && check_access(item, reinterpret_cast<void *>(vector.start), item.identity, length) && item_identity)