Sanitise strings printed when received from target control/remote server

* Given socket corruption or network errors these strings could contain
  unprintable characters so we sanitise them reasonably. This also ameliorates a
  potential security concern with arbitrary strings being written to a log, but
  these connections are still considered trusted and users should not be
  exposing RenderDoc ports to the internet.
This commit is contained in:
baldurk
2023-05-19 10:28:58 +01:00
parent e0464fea4f
commit 1f72a09e3b
5 changed files with 47 additions and 12 deletions
+1 -1
View File
@@ -464,7 +464,7 @@ static void ActiveRemoteClientThread(ClientThread *threadData,
reader.EndChunk();
RDCLOG("Taking ownership of '%s'.", path.c_str());
RDCLOG("Taking ownership of capture.");
tempFiles.push_back(path);
}