Issue 91225
Summary lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:1300: 2 * missing bounds check ?
Labels lldb, code-quality
Assignees
Reporter dcb314
    Static analyser cppcheck says:

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:1300:75: warning: Missing bounds check for extra iterator increment in loop. [StlMissingComparison]

Source code is

  for (std::string::const_iterator c = packet.begin(); c != packet.end(); ++c) {
  ...
  int repeat_count = *++c + 3 - ' ';
   ...
   char escapee = *++c ^ 0x20;

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

Reply via email to