Branch: Tag:

2018-05-30

2018-05-30 13:28:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed potential NULL-dereference in -rt mode.

446:    }    if (runtime_options & RUNTIME_CHECK_TYPES) {    node *p = n->parent; -  if (CAR(p) == n) { +  if (p && (CAR(p) == n)) {    (_CAR(p) = mksoftcastnode(t, mkcastnode(mixed_type_string, n)))    ->parent = p; -  } else if (CDR(p) == n) { +  } else if (p && (CDR(p) == n)) {    (_CDR(p) = mksoftcastnode(t, mkcastnode(mixed_type_string, n)))    ->parent = p;    } else {