]> granicus.if.org Git - yasm/commit
expr_simplify_identity: Pass int_term via pointer.
authorPeter Johnson <peter@tortall.net>
Mon, 11 Jul 2011 06:44:18 +0000 (23:44 -0700)
committerPeter Johnson <peter@tortall.net>
Mon, 11 Jul 2011 06:44:18 +0000 (23:44 -0700)
commitbd8401d5381bd47d61b901e7e7d111348db66cea
treecdc6b29de2d0dbbd69bbfd83c6f1f533a9bacdde
parent3b65acb39d1eae22ecaf9f4286b9ea0f9a6fae93
expr_simplify_identity: Pass int_term via pointer.

This allows signaling to the caller (expr_level_op) that the int_term
was destroyed.  Without this, the new expr-simplify-identity testcase
has a use-after-free.

[#232 state:resolved]
libyasm/expr.c
libyasm/tests/Makefile.inc
libyasm/tests/expr-simplify-identity.asm [new file with mode: 0644]
libyasm/tests/expr-simplify-identity.hex [new file with mode: 0644]