diff options
author | Jason Molenda <jmolenda@apple.com> | 2015-07-14 04:51:05 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2015-07-14 04:51:05 +0000 |
commit | 21c34ac4197d04d0a84e7f42c63d60169abb8df7 (patch) | |
tree | 1ea4328644888f21267e7dd4e1dd14e4fdf60d12 | |
parent | bae540e945fd17a29cbab90e0ab0eec2667a28fe (diff) | |
download | bcm5719-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.cpp | 2 |
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; |