https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81859
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Yes, r251029 still needs tweaking. It needs to use strnlen(s, n) to safely determine the length of s, not strlen(s), to avoid reading past the end of s if it's not nul-terminated.