Skip to content

Mark free_pages and free_pool as unsafe - #973

Merged
phip1611 merged 1 commit into
rust-osdev:mainfrom
nicholasbishop:bishop-unsafe-free
Oct 26, 2023
Merged

phip1611 merged 1 commit into
rust-osdev:mainfrom
nicholasbishop:bishop-unsafe-free

Conversation

@nicholasbishop

Copy link
Copy Markdown
Member

These functions can easily be used to trigger UB from safe code by passing in an address to memory that is still in use. Fix by marking them unsafe.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

These functions can easily be used to trigger UB from safe code by passing in an
address to memory that is still in use. Fix by marking them `unsafe`.
@phip1611
phip1611 added this pull request to the merge queue Oct 26, 2023
Merged via the queue into rust-osdev:main with commit 1f0d83b Oct 26, 2023
@nicholasbishop
nicholasbishop deleted the bishop-unsafe-free branch October 26, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants