aboutsummaryrefslogtreecommitdiff
path: root/opcodes/crx-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-02-24 10:33:33 +1030
committerAlan Modra <amodra@gmail.com>2018-02-26 10:51:12 +1030
commite95b887f85a192eb1597cd5d358673520029ad14 (patch)
tree1a39e141a50d8bd1bc5154b42e566f6ba695584d /opcodes/crx-dis.c
parent128a19de3d4387888e1c46df0c3c8964881b4274 (diff)
downloadgdb-e95b887f85a192eb1597cd5d358673520029ad14.zip
gdb-e95b887f85a192eb1597cd5d358673520029ad14.tar.gz
gdb-e95b887f85a192eb1597cd5d358673520029ad14.tar.bz2
crx string overflow warning
gcc8 complains wrongly about the buffer not being large enough, at least at -Og optimization. * crx-dis.c (getregliststring): Allocate a large enough buffer to silence false positive gcc8 warning.
Diffstat (limited to 'opcodes/crx-dis.c')
-rw-r--r--opcodes/crx-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c
index a70ab81..27a2aa8 100644
--- a/opcodes/crx-dis.c
+++ b/opcodes/crx-dis.c
@@ -244,7 +244,7 @@ powerof2 (int x)
void
getregliststring (int mask, char *string, enum REG_ARG_TYPE core_cop)
{
- char temp_string[5];
+ char temp_string[16];
int i;
string[0] = '{';