Fix: Check that enumeration container types are integers
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 21 May 2014 17:32:43 +0000 (13:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 27 Jun 2014 20:07:25 +0000 (16:07 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-types.c

index 7c5047f92aba18b5a67831435d1abdf1f774f1a2..21686483474654f12907abf982168dfc1e42a907 100644 (file)
@@ -359,6 +359,10 @@ struct bt_ctf_field_type *bt_ctf_field_type_enumeration_create(
                goto error;
        }
 
+       if (integer_container_type->declaration->id != CTF_TYPE_INTEGER) {
+               goto error;
+       }
+
        enumeration = g_new0(struct bt_ctf_field_type_enumeration, 1);
        if (!enumeration) {
                goto error;
This page took 0.02642 seconds and 4 git commands to generate.