Merge pull request #2975 from not6/patch-4
Use section raw size if virtual size is null
This commit is contained in:
commit
f2f9b7214f
|
@ -743,6 +743,8 @@ void GetModuleInfo(MODINFO & Info, ULONG_PTR FileMapVA)
|
||||||
|
|
||||||
curSection.addr = ntSection->VirtualAddress + Info.base;
|
curSection.addr = ntSection->VirtualAddress + Info.base;
|
||||||
curSection.size = ntSection->Misc.VirtualSize;
|
curSection.size = ntSection->Misc.VirtualSize;
|
||||||
|
if(!curSection.size)
|
||||||
|
curSection.size = ntSection->SizeOfRawData;
|
||||||
|
|
||||||
// Null-terminate section name
|
// Null-terminate section name
|
||||||
char sectionName[IMAGE_SIZEOF_SHORT_NAME + 1];
|
char sectionName[IMAGE_SIZEOF_SHORT_NAME + 1];
|
||||||
|
|
Loading…
Reference in New Issue