Skip to content

DynELF does not consult ELF base address #144

@zachriggle

Description

@zachriggle

There's no check against elf.address

        #On non position independent executables the base address can be read off the elf.
        if PIE is False and base is None:
            base = filter(lambda x: x['p_type'] == 'PT_LOAD' and (x.header.p_flags & 1), e.segments)[0]['p_vaddr']

        #At this point we should have a base address
        if base is None:
            log.error('Position independent ELF needs a base address')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions