[llvm] [clang-tools-extra] [libcxx] [flang] [clang] [libc] [mlir] [lldb] [compiler-rt] [libunwind] [lld] [libcxxabi] PR#72453 : Exceeding maximum file name length (PR #72654)

Todd A. Anderson via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 17 08:06:12 PST 2023


================
@@ -94,7 +96,7 @@ void printGraphForFunction(Function &F, GraphT Graph, StringRef Name,
   raw_fd_ostream File(Filename, EC, sys::fs::OF_TextWithCRLF);
   std::string GraphName = DOTGraphTraits<GraphT>::getGraphName(Graph);
 
-  if (!EC)
+  if (!EC && (Filename.length() <= MAX_FILENAME_LEN))
----------------
DrTodd13 wrote:

Not sure this does anything since if filename is too long then an error code EC will already be set.

https://github.com/llvm/llvm-project/pull/72654


More information about the cfe-commits mailing list