diff options
| author | Thurston Dang <thurston@google.com> | 2025-10-28 22:21:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-28 15:21:43 -0700 |
| commit | e9804584f75c1ab267431c43a0928a8b0a3814f0 (patch) | |
| tree | 650ff3c76ef4bee5c4fdfcb4e2d67d34714c4158 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
| parent | 2aecb3cc58613010c40e55c3ca45d85249cc970d (diff) | |
| download | llvm-e9804584f75c1ab267431c43a0928a8b0a3814f0.zip llvm-e9804584f75c1ab267431c43a0928a8b0a3814f0.tar.gz llvm-e9804584f75c1ab267431c43a0928a8b0a3814f0.tar.bz2 | |
[MemRef] Fix-forward use-after-scope in #164955 (#165478)
https://github.com/llvm/llvm-project/pull/164955 has a use-after-scope
(https://lab.llvm.org/buildbot/#/builders/169/builds/16454):
```
==mlir-opt==3940651==ERROR: AddressSanitizer: stack-use-after-scope on address 0x6e1f6ba5c878 at pc 0x6336b214912a bp 0x7ffe607f1670 sp 0x7ffe607f1668
READ of size 4 at 0x6e1f6ba5c878 thread T0
#0 0x6336b2149129 in size /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/SmallVector.h:80:32
#1 0x6336b2149129 in operator[] /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/SmallVector.h:299:5
#2 0x6336b2149129 in populateBoundsForShapedValueDim /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/mlir/lib/Dialect/MemRef/IR/ValueBoundsOpInterfaceImpl.cpp:113:43
...
```
This patch attempts to fix-forward by stack-allocating reassocIndices,
instead of taking a reference to a return value.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
