allow -1 union values for undefined tags to avoid false positives

develop
Ben Lubar 2020-02-29 21:57:39 -06:00
parent dc5ef1fe58
commit 85bfa60cf2
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 1 additions and 1 deletions

@ -724,7 +724,7 @@ void Checker::queue_union(const ToCheck & item, const ToCheck & tag_item)
// if it's all uninitialized, ignore it
uint8_t uninit_value = *reinterpret_cast<const uint8_t *>(item.ptr);
bool all_uninitialized = uninit_value == 0 || uninit_value == 0xd2;
bool all_uninitialized = uninit_value == 0x00 || uninit_value == 0xd2 || uninit_value == 0xff;
if (all_uninitialized)
{
for (size_t offset = 0; offset < union_type->byte_size(); offset++)