Allow building device paths as constants

Open
#983 2 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

Start by reading issue #970 and the referenced lanzaboote#194 discussion to understand the device-path lifetime problem. Determine the design needed for device paths to be usable as global constants; done means constant construction avoids the reported use-after-free issue.

Written by the indexing model from the issue text.

Description

Splitting this off from https://github.com/rust-osdev/uefi-rs/issues/970.

It would be nice to be able to build device paths as global constants as well. This would sidestep the use-after-free issues from nix-community/lanzaboote#194.

Originally posted by @blitz in https://github.com/rust-osdev/uefi-rs/issues/970#issuecomment-1775618414

Dominant language
Rust
Stars
1.7k
Forks
205
Avg merge
1d 20h
Merged PRs (30d)
15

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-osdev/uefi-rs

All issues in rust-osdev/uefi-rs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.