commit | 21c34ac4197d04d0a84e7f42c63d60169abb8df7 | [log] [tgz] |
---|---|---|
author | Jason Molenda <jmolenda@apple.com> | Tue Jul 14 04:51:05 2015 +0000 |
committer | Jason Molenda <jmolenda@apple.com> | Tue Jul 14 04:51:05 2015 +0000 |
tree | 1ea4328644888f21267e7dd4e1dd14e4fdf60d12 | |
parent | bae540e945fd17a29cbab90e0ab0eec2667a28fe [diff] [blame] |
Fix off-by-one error in the packet decompression routine that would not pass through empty ("unsupported packet") replies correctly. llvm-svn: 242119
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 1af3947..ce0e806 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -564,7 +564,7 @@ return true; size_t pkt_size = m_bytes.size(); - if (pkt_size < 6) + if (pkt_size < 5) return true; if (m_bytes[0] != '$' && m_bytes[0] != '%') return true;