2001-03-29
2001-03-29 20:23:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
c7eadf5d8db3ed647ec30a577e86d9556bac352d
(7 lines)
(+6/-1)
[
Show
| Annotate
]
Branch: 7.9
Improved debug.
Rev: src/stralloc.c:1.120
26:
#define HUGE HUGE_VAL
#endif /*!HUGE*/
- RCSID("$Id: stralloc.c,v 1.119 2001/03/29 01:12:38 hubbe Exp $");
+ RCSID("$Id: stralloc.c,v 1.120 2001/03/29 20:23:32 grubba Exp $");
#define BEGIN_HASH_SIZE 997
#define MAX_AVG_LINK_LENGTH 3
845: Inside #if defined(PIKE_DEBUG)
fatal("Freeing shared string again, memory corrupt or other bug!\n");
}
}
+ if ((s->size_shift < 0) || (s->size_shift > 2)) {
+ fatal("Freeing string with bad shift (0x%08x); could it be a type?\n",
+ s->size_shift);
+ }
#endif
unlink_pike_string(s);
really_free_pike_string(s);