On 11/10/2025 06:45, Collin Funk wrote:
The glob function from glibc makes a recursive call for every trailing
slash character in the given pattern. This makes it easy to run out of
stack space.
The attached patches fix it and add a test in Gnulib. It is based on my
patch in glibc, which is just waiting for a final "Reviewed-by" before
committing [1].
I'm not expecting to need a v3 patch for glibc, but I will hold off
pushing to Gnulib just in case.
Collin
[1]
https://inbox.sourceware.org/libc-alpha/[email protected]/T/#m9e88071d873191ae84a141823b2e310aabf4e6e2
So only trailing /////'s are an issue,
not a///////...b, interesting.
Patch looks good.
thank you,
Padraig