Skip to content

fix: apply slash normalizer before bin path join#41

Merged
wraithgar merged 1 commit intonpm:mainfrom
antongolub:fix-normalize-object
May 2, 2023
Merged

fix: apply slash normalizer before bin path join#41
wraithgar merged 1 commit intonpm:mainfrom
antongolub:fix-normalize-object

Conversation

@antongolub
Copy link
Copy Markdown
Contributor

What / Why

Prevent pkg from linking binaries outside of its own directory

Current behaviour

'../../../../etc/passwd''etc/passwd'
'..\\..\\..\\..\\etc\\passwd''../../../../etc/passwd'

Expected

'../../../../etc/passwd''etc/passwd'
'..\\..\\..\\..\\etc\\passwd''etc/passwd'

@antongolub antongolub requested a review from a team as a code owner May 2, 2023 15:21
@antongolub antongolub requested review from wraithgar and removed request for a team May 2, 2023 15:21
@antongolub antongolub force-pushed the fix-normalize-object branch from 10377f1 to b30e554 Compare May 2, 2023 16:20
Copy link
Copy Markdown
Contributor

@wraithgar wraithgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This makes total sense.

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.

2 participants