Skip to content

Commit 67ae186

Browse files
emesareplafosse
authored andcommitted
Fix Itanium VFT analysis crashing when possible VFT at section start boundary
The vft will have a few fields above it, we did not verify that when we read those fields that they were readable. Fixes #6694
1 parent 701c702 commit 67ae186

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/rtti/itanium.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ void ItaniumRTTIProcessor::ProcessVFT()
768768
continue;
769769
// Verify that there is two field sized values above the type info pointer
770770
optReader.Seek(ref - ArchFieldSize(m_view) * 2);
771+
if (!m_view->IsValidOffset(optReader.GetOffset()))
772+
continue;
771773
auto beforeTypeInfoRef = optReader.ReadPointer();
772774
if (m_view->IsValidOffset(beforeTypeInfoRef))
773775
continue;

0 commit comments

Comments
 (0)