On Tue, Feb 18, 2025 at 01:21:32AM +0000, Al Viro wrote: > See the problem? strrchr() expects a NUL-terminated string; giving it an > array that has no zero bytes in it is an UB. > > That one is -stable fodder on its own, IMO... FWIW, it's more unpleasant; there are other call chains for parse_longname() where it's not feasible to NUL-terminate in place. I suspect that the patch below is a better way to handle that. Comments?