[all-commits] [llvm/llvm-project] c93226: Add a nul byte to packet str before logging, incre...

Jason Molenda via All-commits all-commits at lists.llvm.org
Tue Oct 20 01:43:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c932266c8d0414672974eb777bbbb86f1d0f122d
      https://github.com/llvm/llvm-project/commit/c932266c8d0414672974eb777bbbb86f1d0f122d
  Author: Jason Molenda <jason at molenda.com>
  Date:   2020-10-20 (Tue, 20 Oct 2020)

  Changed paths:
    M lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
    M lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h

  Log Message:
  -----------
  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.




More information about the All-commits mailing list