Branch: Tag:

1997-12-22

1997-12-22 17:32:59 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

doesn't try to allocate negative size mappings any more

Rev: src/encode.c:1.16

437:       case T_MAPPING:    { -  struct mapping *m=allocate_mapping(num); +  struct mapping *m; +  if(num<0) +  error("Failed to decode string. (mapping size is negative)\n"); +  +  m=allocate_mapping(num);    tmp.type=T_MAPPING;    tmp.u.mapping=m;    mapping_insert(data->decoded, & data->counter, &tmp);