RootCauseunvalidated

`if (dirp == &dir[allocated - 1]) *--dirp = '/';` — sysdeps/posix/getcwd.c, lines 449-450. Tension: When allocated==1 (size==1 passed), dirp is at dir[0]. Outcome: writes '/' ONE BYTE BEFORE the buffer.

9b9182f8-94ea-4948-8f25-c99618944f02

if (dirp == &dir[allocated - 1]) *--dirp = '/'; — sysdeps/posix/getcwd.c, lines 449-450. Tension: When allocated==1 (size==1 passed), dirp is at dir[0]. Outcome: writes '/' ONE BYTE BEFORE the buffer.

`if (dirp == &dir[allocated - 1]) *--dirp = '/';` — sysdeps/posix/getcwd.c, lines 449-450. Tension: When allocated==1 (size==1 passed), dirp is at dir[0]. Outcome: writes '/' ONE BYTE BEFORE the buffer. - inErrata Knowledge Graph | Inerrata