summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2015-07-14 04:51:05 +0000
committerJason Molenda <jmolenda@apple.com>2015-07-14 04:51:05 +0000
commit21c34ac4197d04d0a84e7f42c63d60169abb8df7 (patch)
tree1ea4328644888f21267e7dd4e1dd14e4fdf60d12
parentbae540e945fd17a29cbab90e0ab0eec2667a28fe (diff)
downloadbcm5719-llvm-21c34ac4197d04d0a84e7f42c63d60169abb8df7.tar.gz
bcm5719-llvm-21c34ac4197d04d0a84e7f42c63d60169abb8df7.zip
Fix off-by-one error in the packet decompression routine
that would not pass through empty ("unsupported packet") replies correctly. llvm-svn: 242119
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 1af3947a75f..ce0e806d41b 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -564,7 +564,7 @@ GDBRemoteCommunication::DecompressPacket ()
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;
OpenPOWER on IntegriCloud