[all-commits] [llvm/llvm-project] b3e111: [DebugInfo] Pass string ownership to MarkupFilter ...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Dec 14 00:21:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3e111431ca984133961c9b945dd51b6de22d213
      https://github.com/llvm/llvm-project/commit/b3e111431ca984133961c9b945dd51b6de22d213
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    M llvm/include/llvm/DebugInfo/Symbolize/MarkupFilter.h
    M llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
    M llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

  Log Message:
  -----------
  [DebugInfo] Pass string ownership to MarkupFilter (#75403)

Last `getline` call destroys `InputString`, and `finish` accesses dead
`StringRef`.

Detected with #72677.

Fixes
https://lab.llvm.org/buildbot/#/builders/sanitizer-x86_64-linux-fast




More information about the All-commits mailing list