Skip to content

Commit f30b00d

Browse files
committed
Fix crash with invalid vtable info when processing MSVC vftables
Found when a vtable is constrained to a size less than the base vft, indicating a bad base vft associating most likely. Fixes #6840
1 parent 75b62d6 commit f30b00d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/rtti/microsoft.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,8 @@ void MicrosoftRTTIProcessor::ProcessVFT()
790790
}
791791

792792
vftFinished.insert(vftAddr);
793-
auto vftInfo = ProcessVFT(vftAddr, classInfo, baseClassInfo);
794-
classInfo.vft = vftInfo.value();
793+
if (auto vftInfo = ProcessVFT(vftAddr, classInfo, baseClassInfo))
794+
classInfo.vft = vftInfo.value();
795795
};
796796

797797
size_t processedNum = 0;

0 commit comments

Comments
 (0)