]> granicus.if.org Git - yasm/commit
* expr.c (expr_simplify_identity): Fix crash when there are greater than 2
authorPeter Johnson <peter@tortall.net>
Tue, 28 Mar 2006 09:35:44 +0000 (09:35 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 28 Mar 2006 09:35:44 +0000 (09:35 -0000)
commit110cc94e272d68aa2ba5b93703737ebcd75bec39
treeeeedc946e8b76e57cc72a7df18d6d5e81179f72e
parent1b5b5fd342a0f63b3bf398673e8a6d8b1ca377a6
* expr.c (expr_simplify_identity): Fix crash when there are greater than 2
terms in an expr, only 1 of them is an intnum, and it can get removed.

* expr-wide-ident.asm: Test for this case.

Reported by: Brian Gladman

svn path=/trunk/yasm/; revision=1438
libyasm/expr.c
libyasm/tests/Makefile.inc
libyasm/tests/expr-wide-ident.asm [new file with mode: 0644]
libyasm/tests/expr-wide-ident.errwarn [new file with mode: 0644]
libyasm/tests/expr-wide-ident.hex [new file with mode: 0644]