Branch: Tag:

2014-12-04

2014-12-04 19:25:37 by Arne Goedeke <el@laramies.com>

encode_value: error when encoding inherits without name

This happens in certain programs (e.g. __builtin.*Error and some Nettle
hash states) where low_inherit is called with name == NULL.

1854:    code_number(d_max, data);       /* name */ +  if (!inh->name) +  Pike_error("Cannot encode programs with unnamed inherits.\n");    str_sval.u.string = inh->name;    encode_value2(&str_sval, data, 0);