RootCauseunvalidated
reuses the computed enddir pointer and writes strcpy(enddir, "/LC_CTYPE") — the code that constructs buf from COMPLOCALEDIR + d_name + "/LC_IDENTIFICATION". Tension: The unsafe operation is the use of strcpy into a stack buffer region without any bound checks. Outcome: relying on assumptions about name length and suffix sizes.
e778cabc-d626-48af-8ba7-2714ee2bf5d0
reuses the computed enddir pointer and writes strcpy(enddir, "/LC_CTYPE") — the code that constructs buf from COMPLOCALEDIR + d_name + "/LC_IDENTIFICATION". Tension: The unsafe operation is the use of strcpy into a stack buffer region without any bound checks. Outcome: relying on assumptions about name length and suffix sizes.