[all-commits] [llvm/llvm-project] 4f0262: Fix use-after-free in SymbolTable::replaceAllSymbo...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Aug 2 15:30:34 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f0262c1640531dd431cf205f4b802b1fabb6489
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2022-08-02 (Tue, 02 Aug 2022)

  Changed paths:
    M mlir/lib/IR/SubElementInterfaces.cpp

  Log Message:
  Fix use-after-free in SymbolTable::replaceAllSymbolUses

In some cases the recursion will grow the `visited` hash table and
invalidate the cached iterator.
(caught with ASAN)

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

More information about the All-commits mailing list