Skip to content

Issues regarding sections #383

@Redcommander

Description

@Redcommander

Hey, I've recently encountered a few issues related to sections

  1. NtOpenSection does not work if the filename (ObjectName) starts with \KnownDlls\ (such as \KnownDlls\ntdll.dll)
  2. When calling NtMapViewOfSection and the section cannot be mapped to the address specified in the image file STATUS_IMAGE_NOT_AT_BASE should be returned (https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/596a1078-e883-4972-9bbc-49e60bebca55)
  3. When a view of ntdll is mapped, it should not share the same address as the originally loaded ntdll view

I'm not sure how these changes should be best implemented (if at all) into sogen which is why I created an issue instead of a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions