Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node/path): crash when joining long paths #16019

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

DonIsaac
Copy link
Contributor

What does this PR do?

Fixes #15704.

Fixes a crash in path.join where not enough buffer space was being allocated for sentinel 0s, causing an array out-of-bounds error.

How did you verify your code works?

I wrote automated tests.

@DonIsaac DonIsaac requested review from a team and Jarred-Sumner and removed request for a team December 27, 2024 16:45
@robobun
Copy link

robobun commented Dec 27, 2024

Updated 9:58 AM PT - Dec 27th, 2024

@DonIsaac, your commit 8e3a1ff has passed in #8573! 🎉


🧪   try this PR locally:

bunx bun-pr 16019

@DonIsaac DonIsaac enabled auto-merge December 27, 2024 17:53
@DonIsaac DonIsaac added this pull request to the merge queue Dec 27, 2024
Merged via the queue into main with commit d8e644f Dec 27, 2024
67 checks passed
@DonIsaac DonIsaac deleted the don/fix/joining-long-paths-crash branch December 27, 2024 19:07
probably-neb pushed a commit to probably-neb/bun that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

path: segfault in path.join
2 participants