PATCH: z8k buffer overrun fix
Christian Groessler
chris@groessler.org
Thu Apr 21 20:09:00 GMT 2005
Hi,
found this while working on the bfd transition.
Ok to apply on the 2.15 branch, too?
regards,
chris
2005-04-21 Christian Groessler <chris@groessler.org>
* config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
array.
Index: tc-z8k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-z8k.c,v
retrieving revision 1.34
diff -u -p -r1.34 tc-z8k.c
--- tc-z8k.c 23 Feb 2005 12:28:06 -0000 1.34
+++ tc-z8k.c 21 Apr 2005 19:55:19 -0000
@@ -1182,7 +1182,7 @@ md_assemble (char *str)
char c;
char *op_start;
char *op_end;
- struct z8k_op operand[3];
+ struct z8k_op operand[4];
opcode_entry_type *opcode;
/* Drop leading whitespace. */
More information about the Binutils
mailing list