commit
de447e248cce3ca3fd7040c386ac798c35721415 upstream.
The payload statement evaluation pretends that it can handle any
expression for bitfields, but the existing evaluation code only knows
how to handle value expression.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
mpz_lshift_ui(stmt->payload.val->value, shift_imm);
break;
default:
- break;
+ return expr_error(ctx->msgs, stmt->payload.val,
+ "payload statement for this expression is not supported");
}
masklen = payload_byte_size * BITS_PER_BYTE;