Skip to content

Dereferenced non-allocated pointer error #75

Description

@adam-mcdaniel

To make programs more correct, runtime checks could be added for determining whether or not the program is accessing memory it does not own.

To be a valid pointer, it must either:

  1. Point to an address that is less than the stack pointer. Pointers to stack variables are valid pointers.
  2. Point to allocated memory on the heap. Non-allocated memory on the heap should not be accessed.

Dereferencing an address that violates either of those rules could throw a accessed unowned memory error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    error handlingRelated to Oak's error handling systemhardeningImprovement to the soundness of the projectmemoryRelated to Oak's memory management

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions