diff options
| author | yingopq <115543042+yingopq@users.noreply.github.com> | 2025-10-10 16:40:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-10 16:40:22 +0800 |
| commit | 51eee2010d3184f21502d12d69c0234549ee3fb4 (patch) | |
| tree | 253b79f6d953a8d55ad039ed213a8ad4fc0dfec5 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
| parent | ef4598fbc6038d47c33a1746e47885833cd69ade (diff) | |
| download | llvm-51eee2010d3184f21502d12d69c0234549ee3fb4.zip llvm-51eee2010d3184f21502d12d69c0234549ee3fb4.tar.gz llvm-51eee2010d3184f21502d12d69c0234549ee3fb4.tar.bz2 | |
[Mips] Fix clang crashes when assembling invalid MIPS beql instructions with --arch=mips (#156413)
From clang version 4, mips append new instruction BeqImm and
BEQLImm, the second operand format of instruction is imm64:$imm.
1.When Mips process `beql $t0, ($t0), 1`, it think the second operand
was an imm, so match success. Then mips backend process expandBranchImm,
check the second operand `$t0` was not imm, reported asserts.
We can strengthen the second operand matching restrictions.
2.Similarly, when Mips process `beql $t0, (1), 1`, it think the second
was an imm. so match success. Then mips backend process expandBranchImm,
check the third operand `1` was not expression, reported asserts. Permit
the third operand of `beql` to be imm.
Fixes #151453.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
