[all-commits] [llvm/llvm-project] 8d61e1: [MLIR][Bufferization] Fix out-of-bounds access in ...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Fri Mar 13 04:05:10 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d61e156753331f26b1834cf930499e5194c64ec
https://github.com/llvm/llvm-project/commit/8d61e156753331f26b1834cf930499e5194c64ec
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-03-13 (Fri, 13 Mar 2026)
Changed paths:
M mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
M mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize-analysis.mlir
Log Message:
-----------
[MLIR][Bufferization] Fix out-of-bounds access in setInPlaceOpOperand (#186280)
When annotating operations with bufferization markers during analysis,
setInPlaceOpOperand reads the existing __inplace_operands_attr__ and
then sets one entry. If the attribute was provided by the user with
fewer entries than the op has operands (e.g. a return with two tensor
operands but only one entry in the annotation), the function would crash
with an out-of-bounds vector access.
Fix by resizing the vector to the actual operand count before setting
the entry when the existing annotation is too short.
Fixes #128316
Assisted-by: Claude Code
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list