diff options
author | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2021-12-17 15:26:54 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-12-17 17:01:44 -0800 |
commit | 9833dd97678ef5e369ff6a5eb7b508179bc038f7 (patch) | |
tree | 3138a4c7aa77bb4cec66aa276d4b188f93be98b9 /opcodes | |
parent | 404e887836f0a5637f3d5611b04c1d63e03a9831 (diff) | |
download | binutils-9833dd97678ef5e369ff6a5eb7b508179bc038f7.zip binutils-9833dd97678ef5e369ff6a5eb7b508179bc038f7.tar.gz binutils-9833dd97678ef5e369ff6a5eb7b508179bc038f7.tar.bz2 |
x86: Terminate mnemonicendp in swap_operand()
Tested on x86_64-pc-linux-gnu.
opcodes/ChangeLog:
2021-12-17 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* i386-dis.c (swap_operand): Terminate mnemonicendp.
gas/ChangeLog:
2021-12-17 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* testsuite/gas/i386/opts-intel.d: Updated expected disassembly.
* testsuite/gas/i386/opts.d: Likewise.
* testsuite/gas/i386/sse2avx-opts-intel.d: Likewise.
* testsuite/gas/i386/sse2avx-opts.d: Likewise.
* testsuite/gas/i386/x86-64-opts-intel.d: Likewise.
* testsuite/gas/i386/x86-64-opts.d: Likewise.
* testsuite/gas/i386/x86-64-sse2avx-opts-intel.d: Likewise.
* testsuite/gas/i386/x86-64-sse2avx-opts.d: Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/i386-dis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 926f776..de3f245 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -10307,6 +10307,7 @@ swap_operand (void) { mnemonicendp[0] = '.'; mnemonicendp[1] = 's'; + mnemonicendp[2] = '\0'; mnemonicendp += 2; } |