================ @@ -1145,8 +1145,8 @@ Status GDBRemoteCommunication::StartDebugserverProcess( if (socket_pipe.CanWrite()) socket_pipe.CloseWriteFileDescriptor(); if (socket_pipe.CanRead()) { - char port_cstr[PATH_MAX] = {0}; - port_cstr[0] = '\0'; + // The port number may be "1024\0".."65535\0". ---------------- labath wrote:
Technically, if you're running as root, it could also be one of the smaller values. I'd just document the largest value. https://github.com/llvm/llvm-project/pull/100666 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits