[all-commits] [llvm/llvm-project] 1805d1: [lldb] Fix -Wstringop-truncation in PythonReadline...

Pavel Labath via All-commits all-commits at lists.llvm.org
Sat Dec 21 02:33:01 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1805d1f87d7835b237f85bfb0595d1f411ebf1bf
      https://github.com/llvm/llvm-project/commit/1805d1f87d7835b237f85bfb0595d1f411ebf1bf
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp

  Log Message:
  -----------
  [lldb] Fix -Wstringop-truncation in PythonReadline.cpp

The size is known and the truncation is deliberate -- use memcpy instead
of strncpy.




More information about the All-commits mailing list