edje_cc_out: Exit instead of segfault on OpenBSD.

Until the cause of these issues can be found exit and
print error messages to console. edje_cc is currently
not reliable on OpenBSD. Until then anyone wanting to
use EFL on this platform will need pre-compiled .edj
files.
Differential Revision: https://phab.enlightenment.org/D9077
This commit is contained in:
Alastair Poole 2019-06-07 19:34:19 +00:00 committed by Marcel Hollerbach
parent 8ae4dbfb3f
commit e8e637a79a
1 changed files with 6 additions and 0 deletions

View File

@ -734,6 +734,12 @@ check_program(Edje_Part_Collection *pc, Edje_Program *ep, Eet_File *ef)
{
Edje_Part *part;
if (et->id >= (int) pc->parts_count)
{
ERR("Target id '%d' greater than possible index '%d'.", et->id, (int) pc->parts_count - 1);
exit(-1);
}
part = pc->parts[et->id];
/* verify existence of description in part */
if (ep->action == EDJE_ACTION_TYPE_STATE_SET)