================ @@ -282,4 +282,40 @@ std::int32_t RTNAME(GetEnvVariable)(const Descriptor &name, return StatOk; } +const char *ensureNullTerminated( ---------------- yi-wu-arm wrote: moved to `tools` https://github.com/llvm/llvm-project/pull/74309