Skip to content

Random stop_pos in call_native causing crashes #88

@terraria99

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

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