[PATCH] D81041: Use existing path sep style in clang::FileManager::FixupRelativePath

Christopher Tetreault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 16:02:34 PDT 2020


ctetreau abandoned this revision.
ctetreau added a comment.

After some further investigation, I have come to believe that the root cause of the issue I am seeing is on line 783 of clang/lib/Lex/HeaderSearch.cpp. A path is constructed using string concatenation (dir + '/' + file), which is obviously not robust to the various issues in path construction. A fix had been committed and reverted back in 2015. Upon restoring the fix, I see that it causes several other test failures. Unfortunately, I do not have the bandwidth to fully resolve this issue myself, so I have opened a bug for it: https://bugs.llvm.org/show_bug.cgi?id=46187

While I still believe the issues I mentioned upthread should probably be addressed, they are much less pressing having discovered the root cause of my particular issue.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81041/new/

https://reviews.llvm.org/D81041





More information about the cfe-commits mailing list