Skip to content

PE: Skip instruction analysis except for the first frame #22

@ishitatsuyuki

Description

@ishitatsuyuki

Only the top frame can be potentially in an epilog; further frames should point to a function call, which is by definition outside an epilog. Instruction parsing can be skipped in such cases as a small optimization.

An exception is interruption coming from signal-like primitives. There are no signals on Win32, but access violation exceptions work similarly. These will push a KiUserExceptionDispatcher entry on stack along with a MACHFRAME entry. We should make sure to treat anything beyond a MACHFRAME entry as the same as a first frame.

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