Skip to content

std: reject interior NULs in Windows junction_point target path#594

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

std: reject interior NULs in Windows junction_point target path#594
SebTardif wants to merge 1 commit into
mainfrom
fix-r74-windows-junction-nul

Conversation

@SebTardif

Copy link
Copy Markdown
Owner

Summary

Reject junction target paths (original and resolved absolute) that contain interior NUL before building the reparse substitute wide buffer.

Closes #591

Related: #542/#543 (chdir NUL), #548/#549 (junction buffer/rollback)

Origin

External-input audit: reparse path construction skipped early NUL validation.

Test plan

  • Error message matches other WinAPI NUL rejections
  • Code review

Reparse substitute names are written as wide strings; embedded NULs
would truncate the target. Reject early with InvalidInput.

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 junction_point target path does not reject interior NUL before reparse write

1 participant