mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
(reset_vars): Use strncpy to prevent overflowing the ins_parse buffer.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2005-07-14 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 1069
|
||||||
|
* config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
|
||||||
|
the ins_parse buffer.
|
||||||
|
|
||||||
2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
|
* configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
|
||||||
|
@ -268,7 +268,8 @@ reset_vars (char *op)
|
|||||||
memset (& output_opcode, '\0', sizeof (output_opcode));
|
memset (& output_opcode, '\0', sizeof (output_opcode));
|
||||||
|
|
||||||
/* Save a copy of the original OP (used in error messages). */
|
/* Save a copy of the original OP (used in error messages). */
|
||||||
strcpy (ins_parse, op);
|
strncpy (ins_parse, op, sizeof ins_parse - 1);
|
||||||
|
ins_parse [sizeof ins_parse - 1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This macro decides whether a particular reloc is an entry in a
|
/* This macro decides whether a particular reloc is an entry in a
|
||||||
|
Reference in New Issue
Block a user