Author: Marina Taylor
Date: 2025-07-16T14:13:58+01:00
New Revision: cc67e3475467dc309b1195bf6cd0c7d9256cfbf2

URL: 
https://github.com/llvm/llvm-project/commit/cc67e3475467dc309b1195bf6cd0c7d9256cfbf2
DIFF: 
https://github.com/llvm/llvm-project/commit/cc67e3475467dc309b1195bf6cd0c7d9256cfbf2.diff

LOG: Revert "[Support] Error if SocketPath is too long (#148903)"

This reverts commit 73630d5e20c8f29aec426954f448079665caf3ab.

Added: 
    

Modified: 
    llvm/lib/Support/raw_socket_stream.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/raw_socket_stream.cpp 
b/llvm/lib/Support/raw_socket_stream.cpp
index cf51de889deaf..fd1c681672138 100644
--- a/llvm/lib/Support/raw_socket_stream.cpp
+++ b/llvm/lib/Support/raw_socket_stream.cpp
@@ -119,14 +119,6 @@ ListeningSocket::ListeningSocket(ListeningSocket &&LS)
 Expected<ListeningSocket> ListeningSocket::createUnix(StringRef SocketPath,
                                                       int MaxBacklog) {
 
-  // If SocketPath is too long, the path will be truncated, and there may be
-  // collisions with other truncated addresses that the fs::exists check below
-  // will be unable to detect.
-  if (SocketPath.size() >= sizeof(sockaddr_un::sun_path))
-    return llvm::make_error<StringError>(
-        std::make_error_code(std::errc::filename_too_long),
-        "SocketPath too long");
-
   // Handle instances where the target socket address already exists and
   // 
diff erentiate between a preexisting file with and without a bound socket
   //


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to