1
0
Fork 0

Merge pull request #2975 from not6/patch-4

Use section raw size if virtual size is null
This commit is contained in:
Duncan Ogilvie 2022-11-22 11:58:10 +02:00 committed by GitHub
commit f2f9b7214f
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -743,6 +743,8 @@ void GetModuleInfo(MODINFO & Info, ULONG_PTR FileMapVA)
curSection.addr = ntSection->VirtualAddress + Info.base;
curSection.size = ntSection->Misc.VirtualSize;
if(!curSection.size)
curSection.size = ntSection->SizeOfRawData;
// Null-terminate section name
char sectionName[IMAGE_SIZEOF_SHORT_NAME + 1];