================
@@ -1316,6 +1316,7 @@ std::string GDBRemoteCommunication::ExpandRLE(std::string 
packet) {
     } else {
       decoded.push_back(*c);
     }
+    c++;
----------------
labath wrote:

How does this prevent an out of bounds access? If I understand the problem 
correctly, the right fix to check for an almost-end iterator when doing the RLE 
expansion (change the condition to something like `if (*c == '*' && 
std::next(c) != packet.end())`, just less clumsy).

https://github.com/llvm/llvm-project/pull/94844
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to