[all-commits] [llvm/llvm-project] a8a811: [mlir] Fix a rare use-after free in dialect loading
Benjamin Kramer via All-commits
all-commits at lists.llvm.org
Mon Jun 19 09:45:08 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a8a811997062d38c6e16e190ecd6377213b77be6
https://github.com/llvm/llvm-project/commit/a8a811997062d38c6e16e190ecd6377213b77be6
Author: Benjamin Kramer <benny.kra at googlemail.com>
Date: 2023-06-19 (Mon, 19 Jun 2023)
Changed paths:
M mlir/lib/IR/MLIRContext.cpp
Log Message:
-----------
[mlir] Fix a rare use-after free in dialect loading
applyExtensions can load further dialects, invalidating the reference to
the dialect pointer in the dialects DenseMap. Capture the pointer to
prevent that from happening.
More information about the All-commits
mailing list