Skip to content

A block hook seems to execute a different number of times depending on platform #4

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

Open
archived-c opened this issue Mar 2, 2020 · 0 comments

Comments

@archived-c
Copy link
Contributor

The following script exemplifies this. The value of len(blocks) on the last line will be different depending on host platform. I have found differing values on my local Windows 10 machine in WSL, the azure CI (linux), and the azure CI (windows).

from zelos import Zelos, HookType

z = Zelos("tests/data/static_elf_helloworld")

blocks = []

def block_hook(zelos, address, size):
    blocks.append(address)

z.hook_execution(HookType.EXEC.BLOCK, block_hook)

z.start()

print(len(blocks))
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

No branches or pull requests

1 participant