diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-07-01 08:48:48 +0100 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2007-07-08 18:44:09 -0700 |
commit | a722bf205788145338ea46f14ec0e66275026711 (patch) | |
tree | e1855abccaf4e8fa62b9458dbaeb76519f84cadc /symbol.c | |
parent | Add test-suite comment to bad-array-designated-initializer.c (diff) | |
download | sparse-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |