Branch: Tag:

2008-01-19

2008-01-19 17:06:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some more paranoia checks.

Rev: src/encode.c:1.249

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.248 2008/01/17 22:39:33 grubba Exp $ + || $Id: encode.c,v 1.249 2008/01/19 17:06:50 grubba Exp $   */      #include "global.h"
2450:    break;    case 0:   #undef EMIT_BYTECODE2 - #define EMIT_BYTECODE2(X) + #define EMIT_BYTECODE2(X) \ +  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 +     EMIT_BYTECODE(STR0, EMIT_BYTECODE2);    break;   #undef SIGNED_CHAR