[all-commits] [llvm/llvm-project] 050518: [X86] Fix to X86LoadValueInjectionRetHardeningPass...

Scott Constable via All-commits all-commits at lists.llvm.org
Fri Apr 10 18:28:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0505181006f1088b2cb28a7240d5f27613783307
      https://github.com/llvm/llvm-project/commit/0505181006f1088b2cb28a7240d5f27613783307
  Author: Scott Constable <scott.d.constable at intel.com>
  Date:   2020-04-10 (Fri, 10 Apr 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp

  Log Message:
  -----------
  [X86] Fix to X86LoadValueInjectionRetHardeningPass for possible segfault

`MBB.back()` could segfault if `MBB.empty()`. Fixed by checking for `MBB.empty()` in the loop.

Differential Revision: https://reviews.llvm.org/D77584




More information about the All-commits mailing list