Re: String_make problems

2002-01-07 Thread Dan Sugalski
At 06:39 PM 1/7/2002 +, Simon Glover wrote: > Currently, whenever we create a new string with a call to string_make, > we allocate the memory for it by a simple call to malloc (via > mem_sys_allocate in memory.c). However, we don't check the return value > of this call, so if the malloc f

String_make problems

2002-01-07 Thread Simon Glover
Currently, whenever we create a new string with a call to string_make, we allocate the memory for it by a simple call to malloc (via mem_sys_allocate in memory.c). However, we don't check the return value of this call, so if the malloc fails, Parrot promptly segfaults when we try to make the