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
pe: align section reads to FileAlignment, pad sections to SectionAlignment #436
Conversation
hey @williballenthin , can you help me understand here? the unittests seem to indicate pretty significant failures that don't immediately appear to be "more accurate." i could be mistaken. thanks! |
specifically, this PR is breaking analysis of Firefox.exe in ways that it should not. any idea why? |
sure, let me dig into the test failures. i'm glad test cases caught a potential regression here. we're in the realm of "what happens if sizes (with and without alignment) are pretty weird?" so I'm not super confident in the intuition/reasoning behind this PR. so, i'll also do some bulk runs against a moderate number of PE files and see what happens. |
sidebar issue: i cannot see the CI results (without logging into CircleCI which requires giving access to my private repos, which i object to on principle). maybe another reason to consider GH Actions? |
tweak alignment calculation
ahhh. these failures look much better. the increased Undefined answer is just a sad artifact of adding padding to the workspace, and likely doesn't indicate any regression. make those few changes and the tests should pass. if you do it quickly, i'll merge it in before 4:30pm EDT. otherwise, @rakuy0 will have to do it since i'll be gone. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ok no unexpected failures when i run these tests locally. should be good to go. |
closes #435