Skip to content

Random stop_pos in call_native causing crashes #88

Description

@terraria99

when the random address is the address of one of the hooks unicorn doesn't stop the emulation causing it to call a random hook with bad args

stop_pos = randint(HOOK_MEMORY_BASE, HOOK_MEMORY_BASE + HOOK_MEMORY_SIZE) | 1

my current work around is to add an offset to HOOK_MEMORY_BASE in the random call so that it cant hit any of the hooks but this isn't a proper solution

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions