x86: Check unbalanced braces in memory reference
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 20 Mar 2023 16:59:16 +0000 (09:59 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 21 Mar 2023 16:13:23 +0000 (09:13 -0700)
commit100f993c53a50352fd91554927142a2558f3481c
tree22ec216c214c6f145d78f7a85e83bc5c1df2fb49
parent70ea5a46bd926149fb4a9c3da32c2fc14f6e83c3
x86: Check unbalanced braces in memory reference

Check unbalanced braces in memory reference to avoid assembler crash
caused by

commit e87fb6a6d0cdfc0e9c471b7825c20c238c2cf506
Author: Jan Beulich <jbeulich@suse.com>
Date:   Wed Oct 5 09:16:24 2022 +0200

    x86/gas: support quoted address scale factor in AT&T syntax

PR gas/30248
* config/tc-i386.c (i386_att_operand): Check unbalanced braces
in memory reference.
* testsuite/gas/i386/i386.exp: Run pr30248.
* testsuite/gas/i386/pr30248.d: New file.
* testsuite/gas/i386/pr30248.err: Likewise.
* testsuite/gas/i386/pr30248.s: Likewise.
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/pr30248.d [new file with mode: 0644]
gas/testsuite/gas/i386/pr30248.err [new file with mode: 0644]
gas/testsuite/gas/i386/pr30248.s [new file with mode: 0644]