[lttng-dev] [PATCH babeltrace 2/3] Fix: CTF parser: accept signed constant literals
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Tue Feb 9 13:27:23 EST 2016
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 at efficios.com>
---
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 4b17198..1831b2d 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.1.4
More information about the lttng-dev
mailing list