Add a nul byte to packet str before logging, increase default size.
authorJason Molenda <jason@molenda.com>
Tue, 20 Oct 2020 08:42:02 +0000 (01:42 -0700)
committerJason Molenda <jason@molenda.com>
Tue, 20 Oct 2020 08:43:31 +0000 (01:43 -0700)
commitc932266c8d0414672974eb777bbbb86f1d0f122d
tree2aacb88ded40b886e2eec88609ea698fefe51fca
parentb9e2b59680ad1bbfd2b9110b3ebf3d2b22cad51b
Add a nul byte to packet str before logging, increase default size.

Add a nul byte to the stream in CommunicationKDP::CheckForPacket
before we send the GetData() to a Log::Printf as a c-str.  Avoids
a crash when logging kdp communications and memory layout isn't
in your favor.
lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h