Skip to content

Subtle logic error in gum_interceptor_resolve #1123

Description

@Ik0ri4n

In gum_interceptor_resolve, the interceptor calls uses a call to _gum_interceptor_backend_resolve_redirect to resolve relative and indirect jumps. This may however unintended behavior, from a user perspective:

A ---*-> C
B --/

Consider two instructions A and B that are both a jump to C. A hook that was intended to be placed at A would end up at C instead, reachable by both code paths.

Obviously, this behavior is internal and not documented anywhere, as far as I can tell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions