Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sh: Fix bss-based buffer overflow in . builtin.
If the length of a directory in PATH together with the given filename exceeded FILENAME_MAX (which may happen even for pathnames that work), a static buffer was overflown. The static buffer is unnecessary, we can use the stalloc() stack. Obtained-from: FreeBSD 222173
- Loading branch information