Skip to content

IMAGE_SECTION_HEADER.EndAddress incorrect #1

Description

@dirk-runge

The IMAGE_SECTION_HEADER.EndAddress is calculated as
VirtualAddress + SizeOfRawData

it should be
VirtualAddress + SizeOfRawData - 1

If two adjacent sections don't have space between, the EndAddress of the first section is the same as the VirtualAddress of the second section. When given the virtualAddress of the second section PEImage.GetSection will return the first section due to the incorrect EndAddress.

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