This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: z8k buffer overrun fix
- From: Christian Groessler <chris at groessler dot org>
- To: <binutils at sources dot redhat dot com>
- Date: Thu, 21 Apr 2005 22:09:15 +0200 (CEST)
- Subject: PATCH: z8k buffer overrun fix
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. */