[all-commits] [llvm/llvm-project] ae1c50: [mlir][sparse_tensor] Fix out-of-bounds read in Sp...

lijinpei-amd via All-commits all-commits at lists.llvm.org
Sat Jun 13 14:20:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae1c5074a0c6ec128fe824d456314e547b57165a
      https://github.com/llvm/llvm-project/commit/ae1c5074a0c6ec128fe824d456314e547b57165a
  Author: lijinpei-amd <jinpli at amd.com>
  Date:   2026-06-13 (Sat, 13 Jun 2026)

  Changed paths:
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
    M mlir/test/Dialect/SparseTensor/sparse_pack.mlir

  Log Message:
  -----------
  [mlir][sparse_tensor] Fix out-of-bounds read in SparseAssembleOpConverter (#203289)

The assemble codegen loop iterates over the level rank but asserted on
`getDimShape()[lvl]`, which is sized by the dimension rank. Index the
level shape instead, matching the loop bound and the next line.

Fixes #203225.



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