Branch: Tag:

2010-02-11

2010-02-11 17:03:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added check of C stack level to decode_value2().
Fixes dumping core due to running out of C-stack for recursive data in decode_value().

Rev: src/encode.c:1.293

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: encode.c,v 1.292 2009/08/19 18:31:34 grubba Exp $ + || $Id: encode.c,v 1.293 2010/02/11 17:03:08 grubba Exp $   */      #include "global.h"
2650:    data->depth += 2;   #endif    +  check_c_stack(1024); +     DECODE("decode_value2");       switch(what & TAG_MASK)