llvm-project
f0dca22f - [flang-rt] Fill return buffer for RTNAME(GetCwd) prior to copying the return string from libc's getcwd() (#245356)

Commit
1 day ago
[flang-rt] Fill return buffer for RTNAME(GetCwd) prior to copying the return string from libc's getcwd() (#245356) `RTNAME(GetCwd)` does not blank fill the user's return buffer prior to populating the buffer with the string returned from libc's `getcwd()`, thus in most cases the Fortran string buffer has at least one NULL terminator byte. This is the second attempt at this PR taking into account the reviews from the first go-around. Fixes https://github.com/llvm/llvm-project/issues/223778
Author
Parents
Loading