diff options
| -rw-r--r-- | expand.c | 2 | ||||
| -rw-r--r-- | validation/linear/bitfield-expand-deref.c | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -644,6 +644,8 @@ static int expand_dereference(struct expression *expr) if (value) { /* FIXME! We should check that the size is right! */ if (value->type == EXPR_VALUE) { + if (is_bitfield_type(value->ctype)) + return UNSAFE; expr->type = EXPR_VALUE; expr->value = value->value; expr->taint = 0; diff --git a/validation/linear/bitfield-expand-deref.c b/validation/linear/bitfield-expand-deref.c index 0a958633..7748725f 100644 --- a/validation/linear/bitfield-expand-deref.c +++ b/validation/linear/bitfield-expand-deref.c @@ -20,7 +20,6 @@ int bar(int a) /* * check-name: bitfield expand deref * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-excludes: ret\..*\$12 |
