We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a57678 commit f5cd80fCopy full SHA for f5cd80f
PEParser/PEParser.cpp
@@ -870,12 +870,14 @@ void PEParser::GetPESections() {
870
_PESections.reserve(count);
871
872
for (WORD i = 0; i < count; i++) {
873
- _PESections[i]._normalSize = _sections[i].Misc.VirtualSize;
874
- _PESections[i]._dataSize = _sections[i].Misc.VirtualSize;
875
if (_isFileMap) {
+ _PESections[i]._normalSize = _sections[i].SizeOfRawData;
+ _PESections[i]._dataSize = _sections[i].SizeOfRawData;
876
offset = _sections[i].PointerToRawData;
877
}
878
else {
879
+ _PESections[i]._normalSize = _sections[i].Misc.VirtualSize;
880
+ _PESections[i]._dataSize = _sections[i].Misc.VirtualSize;
881
offset = _sections[i].VirtualAddress;
882
883
GetPESectionData(offset, _PESections[i]);
0 commit comments