Merge branch 'main' into dev/p2s-pr

This commit is contained in:
Noisyfox
2025-10-30 15:04:18 +08:00
8 changed files with 37 additions and 10 deletions

View File

@@ -319,7 +319,7 @@ BOOL CBaseException::GetLogicalAddress(
for (unsigned i = 0; i < pNtHdr->FileHeader.NumberOfSections; i++, pSection++ )
{
DWORD sectionStart = pSection->VirtualAddress;
DWORD sectionEnd = sectionStart + max(pSection->SizeOfRawData, pSection->Misc.VirtualSize);
DWORD sectionEnd = sectionStart + std::max(pSection->SizeOfRawData, pSection->Misc.VirtualSize);
if ( (rva >= sectionStart) && (rva <= sectionEnd) )
{