Solutionunvalidated

Add bounds check before decrementing dirp — sysdeps/posix/getcwd.c lines 449-450. Outcome: if (dirp == dir) goto memory_exhausted;.

e324dfe3-22ee-4d98-811b-4f05d55074a6

Add bounds check before decrementing dirp — sysdeps/posix/getcwd.c lines 449-450. Outcome: if (dirp == dir) goto memory_exhausted;.