Skip to content

std: reject interior NULs in UEFI env::join_paths segments#599

Open
SebTardif wants to merge 1 commit into
mainfrom
fix-r75-uefi-join-paths-nul
Open

std: reject interior NULs in UEFI env::join_paths segments#599
SebTardif wants to merge 1 commit into
mainfrom
fix-r75-uefi-join-paths-nul

Conversation

@SebTardif

Copy link
Copy Markdown
Owner

Fixes #596

Summary

Reject path segments containing interior wide 0 in UEFI join_paths, matching the Windows fix. Update JoinPathsError display to mention interior NUL.

Origin

External-input audit (env path joining / C-style wide string truncation), SebTardif/rust.

Test plan

UEFI join_paths only rejected ';' separators. Joined Path-style strings
are later treated as C-style wide strings; embedded NULs would truncate
segments. Reject them like the Windows join_paths fix.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
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.

UEFI env::join_paths does not reject interior NUL in path segments

1 participant