Skip to content

std: reject interior NULs in Windows env::join_paths segments#593

Open
SebTardif wants to merge 1 commit into
mainfrom
fix-r74-windows-join-paths-nul
Open

std: reject interior NULs in Windows env::join_paths segments#593
SebTardif wants to merge 1 commit into
mainfrom
fix-r74-windows-join-paths-nul

Conversation

@SebTardif

Copy link
Copy Markdown
Owner

Summary

Reject path segments containing interior wide NUL when joining for Windows PATH-style env strings, in addition to existing \" / ; checks.

Closes #590

Origin

External-input audit: join_paths bypasses to_u16s / ensure_no_nuls.

Test plan

  • Consistent with other Windows string helpers rejecting interior NUL
  • Code review

Joined PATH-style strings are later treated as C-style wide strings;
embedded NULs would truncate segments. Reject them like other WinAPI
string helpers.

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.

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

1 participant