scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 72b39f6bd40777f65a3254e772c48c724e1875a2
parent f4b3100caf1e7eba3c63b00c9736903db2a30664
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 27 Dec 2017 13:27:02 +0000

[as-z80] Fix buffer overflow in imm16()

Some times the size of the instruction is 4 bytes

Diffstat:
Mas/target/x80/ins.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/as/target/x80/ins.c b/as/target/x80/ins.c @@ -213,7 +213,7 @@ void imm16(Op *op, Node **args) { Node *par1, *par2; - unsigned char buf[3]; + unsigned char buf[4]; unsigned val; int n = op->size;