Branch: Tag:

2013-02-16

2013-02-16 22:13:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some more paranoia to decode_value().

There was a potential NULL-deref when decoding destructed objects.

1691:       break;    -  default:; +    #ifdef PIKE_DEBUG -  +  default:    Pike_fatal ("Unknown identifier type: 0x%04x for symbol \"%s\".\n",    id->identifier_flags & IDENTIFIER_TYPE_MASK,    id->name->str);
3754:    /* Let the codec do it's job... */    apply_low(decoder_codec (data), decode_fun, 2);    if ((TYPEOF(Pike_sp[-1]) == T_ARRAY) && +  o->prog &&    ((fun = FIND_LFUN(o->prog, LFUN_CREATE)) != -1)) {    /* Call lfun::create(@args). */    INT32 args;