Branch: Tag:

1999-09-22

1999-09-22 19:01:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

decode_value() now checks that the string it's supposed to decode isn't wide.

Rev: src/encode.c:1.39

24:   #include "stuff.h"   #include "version.h"    - RCSID("$Id: encode.c,v 1.38 1999/09/21 21:16:26 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.39 1999/09/22 19:01:27 grubba Exp $");      #ifdef _AIX   #include <net/nh.h>
1265:    data->codec=codec;    data->pickyness=0;    +  if (tmp->size_shift) return 0;    if(data->len < 5) return 0;    if(GETC() != 182 ||    GETC() != 'k' ||
1389:    struct pike_string *s;    struct object *codec;    -  check_all_args("decode_value",args, BIT_STRING, BIT_VOID | BIT_OBJECT | BIT_INT, 0); +  check_all_args("decode_value", args, +  BIT_STRING, BIT_VOID | BIT_OBJECT | BIT_INT, 0);       s = sp[-args].u.string;    if(args<2)