forked from Imagelibrary/binutils-gdb
* aarch64-asm.c (aarch64_ins_ldst_reglist): Initialize
value with a default.
(do_special_encoding): Likewise.
(aarch64_ins_ldst_elemlist): Pre-initialize QSsize, and opcodeh2
variables with default.
* arc-dis.c (write_comments_): Don't use strncat due
size of state->commentBuffer pointer isn't predictable.
This commit is contained in:
@@ -426,8 +426,7 @@ write_comments_(struct arcDisState * state,
|
||||
strcpy (state->commentBuffer, comment_prefix);
|
||||
else
|
||||
strcat (state->commentBuffer, ", ");
|
||||
strncat (state->commentBuffer, state->comm[i],
|
||||
sizeof (state->commentBuffer));
|
||||
strcat (state->commentBuffer, state->comm[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user