mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
Add length check before path.join in rm's root-check loop to prevent index out of bounds panic when path exceeds the fixed-size buffer. A path exceeding PATH_MAX can't be root, so skip the check and let the actual operation return ENAMETOOLONG. Also add rm test and make all PATH_MAX tests concurrent. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>