GDBRemoteCommunication::DecompressPacket assumed that the buffer it was
authorJason Molenda <jmolenda@apple.com>
Sun, 2 Aug 2015 01:36:09 +0000 (01:36 +0000)
committerJason Molenda <jmolenda@apple.com>
Sun, 2 Aug 2015 01:36:09 +0000 (01:36 +0000)
commita21fdb0dd603421619892a99ba900860259f4292
treecba1de95d253dcf4de4847fa26339745eb841bc5
parent0c07570c400613bf31af2667729ffb9496b3169d
GDBRemoteCommunication::DecompressPacket assumed that the buffer it was
working with (the Communication m_bytes ivar) contained a single packet.
Instead, it may contain multitudes.  Find the boundaries of the first packet
in the buffer and replace that with the decompressed version leaving the
rest of the buffer unmodified.
<rdar://problem/21841377>

llvm-svn: 243846
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp