On Mon, Nov 14, 2022 at 08:17:32AM -0500, Greg Troxel wrote: > I am not arguing against fixing the code to be sane. I am just raising > the other question about maybe strnlen needs fixing.
"s + maxlen" (for most s) wraps around on 32bit architectures so the typical implementation will notice the current char * being >= that limit and claim we ran too far. Martin
