From 8fcbc2acfeabf4a82a104326e4d1d92937252ce8 Mon Sep 17 00:00:00 2001 From: Tim Gu Date: Wed, 4 Dec 2024 09:57:28 -0500 Subject: [PATCH] SWDEV-502248 - Parse file path with space characters Signed-off-by: Tim Gu Change-Id: I67fb9cf5559c9c06f24627a1b25fec3e89b2d1cf [ROCm/clr commit: 84a867fb735f69299c45c0b30a085b8e8400cd15] --- projects/clr/rocclr/os/os_posix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/rocclr/os/os_posix.cpp b/projects/clr/rocclr/os/os_posix.cpp index 86c199b5b1..af04650b86 100644 --- a/projects/clr/rocclr/os/os_posix.cpp +++ b/projects/clr/rocclr/os/os_posix.cpp @@ -820,8 +820,8 @@ bool amd::Os::FindFileNameFromAddress(const void* image, std::string* fname_ptr, tokens >> permissions >> std::hex >> offset >> std::dec >> device - >> inode - >> uri_file_path; + >> inode; + std::getline(tokens >> std::ws, uri_file_path); if (inode == 0 || uri_file_path.empty()) { return ret_value;