diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-01-30 14:13:53 -0200 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-01-30 14:13:53 -0200 |
commit | 0b9b18cae6dbf70becd614daf5612426872bf4a3 (patch) | |
tree | 83ff5802737b7f072cc3b2b9c63816386b7ca8c1 | |
parent | 699e156d144c3e4f87a82f93f45aa53647b5bd4d (diff) | |
download | efl-devs/lauromoura/eolian-inlist-inarray.tar.gz |
eolian: Avoid segfault when parsing types like inlist<int>.devs/lauromoura/eolian-inlist-inarray
-rw-r--r-- | src/lib/eolian/database_validate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c index 2a98f6fdba..a8ba53a545 100644 --- a/src/lib/eolian/database_validate.c +++ b/src/lib/eolian/database_validate.c @@ -250,7 +250,8 @@ _validate_type(Validate_State *vals, Eolian_Type *tp) */ if (!_validate_type(vals, tp->base_type)) return EINA_FALSE; - if (tp->base_type->tdecl->type != EOLIAN_TYPEDECL_STRUCT_INLIST) + if ((tp->base_type->tdecl == NULL) || + (tp->base_type->tdecl->type != EOLIAN_TYPEDECL_STRUCT_INLIST)) { _eo_parser_log(&tp->base_type->base, "inlists can only point at inlist structs"); |