From 128e68e8230a4001c4dbab6dfdcdf986c7c45113 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 9 Feb 2016 13:27:23 -0500 Subject: [PATCH] Fix: CTF parser: accept signed constant literals MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Those are inaccurately rejected by the parser due to this bug. This affects environment variables and loglevel values. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- formats/ctf/metadata/ctf-visitor-generate-io-struct.c | 1 - 1 file changed, 1 deletion(-) diff --git a/formats/ctf/metadata/ctf-visitor-generate-io-struct.c b/formats/ctf/metadata/ctf-visitor-generate-io-struct.c index 4b171984..1831b2dc 100644 --- a/formats/ctf/metadata/ctf-visitor-generate-io-struct.c +++ b/formats/ctf/metadata/ctf-visitor-generate-io-struct.c @@ -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) -- 2.34.1