Fix: CTF parser: accept signed constant literals
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Feb 2016 18:27:23 +0000 (13:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 13 Feb 2016 02:15:42 +0000 (21:15 -0500)
Those are inaccurately rejected by the parser due to this bug. This
affects environment variables and loglevel values.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/metadata/ctf-visitor-generate-io-struct.c

index 4b171984d5b819888c3221d1f0b5c6873c254dda..1831b2dcda4e3dff0b22b1d859cd10342777c36b 100644 (file)
@@ -219,7 +219,6 @@ int get_unary_signed(struct bt_list_head *head, int64_t *value)
 
        bt_list_for_each_entry(node, head, siblings) {
                if (node->type != NODE_UNARY_EXPRESSION
-                               || node->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT
                                || (node->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT && node->u.unary_expression.type != UNARY_SIGNED_CONSTANT)
                                || node->u.unary_expression.link != UNARY_LINK_UNKNOWN
                                || i != 0)
This page took 0.025405 seconds and 4 git commands to generate.