Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uefi: Check for null pointer in config_table #875

Merged

Conversation

nicholasbishop
Copy link
Contributor

slice::from_raw_parts requires a valid pointer even if the slice length is zero, so avoid calling it if the configuration table pointer is null.

Checklist

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

`slice::from_raw_parts` requires a valid pointer even if the slice length is
zero, so avoid calling it if the configuration table pointer is null.
@nicholasbishop nicholasbishop merged commit 5e4752d into rust-osdev:main Jun 23, 2023
12 checks passed
@nicholasbishop nicholasbishop deleted the bishop-empty-cfg-table branch June 23, 2023 01:16
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.

None yet

2 participants