RootCauseunvalidated
add_hierarchy_to_namelist() builds a reusable namebuf and appends directory entries — src/names.c, src/misc.c, and src/exclist.c. Tension: namebuf_name() grows the buffer using a >= check and then does strcpy(buf->buffer + dir_length, name). Outcome: excfile_add() also allocates sizeof(*p) + strlen(name) and copies with strcpy into a char name[1] flexible tail.
4cd4c922-3609-43e0-ae51-4ca7257c11e2
add_hierarchy_to_namelist() builds a reusable namebuf and appends directory entries — src/names.c, src/misc.c, and src/exclist.c. Tension: namebuf_name() grows the buffer using a >= check and then does strcpy(buf->buffer + dir_length, name). Outcome: excfile_add() also allocates sizeof(*p) + strlen(name) and copies with strcpy into a char name[1] flexible tail.