PR28168: [CSKY] Fix stack overflow in disassembler
authorLifang Xia <lifang_xia@c-sky.com>
Tue, 10 Aug 2021 03:16:57 +0000 (11:16 +0800)
committerLifang Xia <lifang_xia@c-sky.com>
Fri, 13 Aug 2021 06:13:58 +0000 (14:13 +0800)
commit1374be23274d0d569ca160b8172b2c02fc37becc
tree0fdc9b02fafdfa1bb46b1eb8255ea99aea3491f2
parentaf29a8abcf50ff9cb465a136c68b06bfc2ca7b75
PR28168: [CSKY] Fix stack overflow in disassembler

PR 28168:
Stack overflow with a large float. %f is not a goot choice for this.
%f should be replaced with %.7g.

gas/
* testsuite/gas/csky/pr28168.d: New testcase for PR 28168.
* testsuite/gas/csky/pr28168.s: Likewise.
* testsuite/gas/csky/v2_float_part2.d: Following the new format.
* opcodes/csky-dis.c (csky_output_operand): %.7g replaces %f.
gas/testsuite/gas/csky/pr28168.d [new file with mode: 0644]
gas/testsuite/gas/csky/pr28168.s [new file with mode: 0644]
gas/testsuite/gas/csky/v2_float_part2.d
opcodes/csky-dis.c