aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-07-01 08:48:48 +0100
committerJosh Triplett <josh@freedesktop.org>2007-07-08 18:44:09 -0700
commita722bf205788145338ea46f14ec0e66275026711 (patch)
treee1855abccaf4e8fa62b9458dbaeb76519f84cadc /symbol.c
parentAdd test-suite comment to bad-array-designated-initializer.c (diff)
downloadsparse-a722bf205788145338ea46f14ec0e66275026711.tar.gz
sparse-a722bf205788145338ea46f14ec0e66275026711.tar.bz2
sparse-a722bf205788145338ea46f14ec0e66275026711.zip
fix the comma handling in integer constant expressions
Treat it as normal binary operation, taint the value, check the taint. We can do other kind of value tainting with the same infrastructure as well... Review and testing would be welcome; AFAICS, it works, but... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 329fed9..cec7e02 100644
--- a/symbol.c
+++ b/symbol.c
@@ -652,6 +652,7 @@ static int expand_warning(struct expression *expr, int cost)
out:
expr->type = EXPR_VALUE;
expr->value = 1;
+ expr->taint = 0;
return 0;
}