Branch: Tag:

2008-01-17

2008-01-17 22:39:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some extra paranoia to the byte code decoder.

Rev: src/encode.c:1.248

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.247 2008/01/16 19:55:25 grubba Exp $ + || $Id: encode.c,v 1.248 2008/01/17 22:39:33 grubba Exp $   */      #include "global.h"
2419:    current_file = p->strings[strno]; \    } else if (STR(bytecode)[e] == F_LINE) { \    current_line = STR(bytecode)[e+1]; \ +  } else if (!current_file) { \ +  Pike_error("Missing filename directive in " \ +  "byte code.\n"); \ +  } else if (!current_line) { \ +  Pike_error("Missing line directive in " \ +  "byte code.\n"); \    } else      #define EMIT_BYTECODE(STR, X) do { \