-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All zeros in some regions #11
Comments
Hi Yuping,
Could you try running process dump from command prompt like "pd.exe -pid
0x<process> -v &> log.txt". The '-v' enables verbose mode, and it should
log what it is thinking to log.txt. Could you send this with me, along with
the address you are talking about? Which version of Process Dump are you
using?
Thanks,
Geoff
…On Sun, Jan 22, 2017 at 2:57 PM, Yuping Liang ***@***.***> wrote:
Don't know if I should post a question here but I get zeros in some
regions of the dump file when there is clearly executable code in those
regions according to CE. I know little about segments and how they are
arranged and loaded into memory and I've been struggling figuring out what
the problem was.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC6mXrqIepsFEo59o69QTnv_WxO1OM2Tks5rU7S2gaJpZM4Lqe9y>
.
|
The missing region turns out to be the entire last section and I got this warning in the output: I added some printfs in the function process_disk_image in pe_header.cpp and messed around with the code a bit and found out the problem seemed to be that larger_image_size was not aligned while VirtualSize was, which made larger_image_size smaller than VirtualAddress + SizeOfRawData in the _test_read check for the last section. I'm not sure if it's the correct way to fix it though. |
Thanks, great analysis! I think your adjustment is right, I will have a look in detail at the code and think on it before committing it. I'm surprised it left the entire section empty as a result of this as well, I need to review the code surrounding that truncation error. |
…etter page alignment of new section that gets added. Thanks to megastupidmonkey for discovering and proposing a fix.
Fixed. This will be released in pd v2.1 which I should have built and uploaded shortly. Thanks for finding the root cause and proposing a solution! |
Don't know if I should post a question here but I get zeros in some regions of the dump file when there is clearly executable code in those regions according to CE. I know little about segments and how they are arranged and loaded into memory and I've been struggling figuring out what the problem was.
The text was updated successfully, but these errors were encountered: