Skip to content

Commit 4166ad1

Browse files
committed
[RTTI] Add a fast-fail to the Itanium RTTI parser for large unbacked sections
1 parent ed76f2d commit 4166ad1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/rtti/itanium.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ void ItaniumRTTIProcessor::ProcessRTTI()
697697
int failedAttempts = 0;
698698
for (uint64_t currAddr = section->GetStart(); currAddr <= section->GetEnd() - maxTypeInfoSize; currAddr += addrSize)
699699
{
700-
if (bgTask->IsCancelled())
700+
if (bgTask->IsCancelled() || !m_view->IsValidOffset(currAddr))
701701
break;
702702
try
703703
{

0 commit comments

Comments
 (0)