Skip to content

Strip trailing int3 instructions (alignment padding) for x64#354

Open
HaydnTrigg wants to merge 2 commits into
encounter:mainfrom
HaydnTrigg:x86_x64_int3_comparison
Open

Strip trailing int3 instructions (alignment padding) for x64#354
HaydnTrigg wants to merge 2 commits into
encounter:mainfrom
HaydnTrigg:x86_x64_int3_comparison

Conversation

@HaydnTrigg
Copy link
Copy Markdown
Contributor

Trying to do some comparison against objects compiled for x64 code with VS2012 17.0.65501.17028

The functions have unreliable sizes due to padding where a function may be 3 bytes large, but after adding a second function it will pad out to 16 byte alignment. However the newly added function is still only 1 byte aligned. This change removes trailing int3 instructions for comparison which are used to pad x64.

Before matching %
image

Problem instructions
image

After %
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant