projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: Check that enumeration container types are integers
[babeltrace.git]
/
formats
/
ctf
/
ir
/
event-types.c
diff --git
a/formats/ctf/ir/event-types.c
b/formats/ctf/ir/event-types.c
index 7c5047f92aba18b5a67831435d1abdf1f774f1a2..21686483474654f12907abf982168dfc1e42a907 100644
(file)
--- a/
formats/ctf/ir/event-types.c
+++ b/
formats/ctf/ir/event-types.c
@@
-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.023173 seconds
and
4
git commands to generate.