search for: re_malloc

Displaying 1 result from an estimated 1 matches for "re_malloc".

Did you mean: p_malloc
2005 Nov 08
1
R-2.2.0: malloc probelm in regex code (PR#8287)
...ay happen). The calling code treats a NULL return as a ESPACE error. In R-2.1.1 this code was not asked to allocate 0 sizes, so I suspect that it shouldn't be happening here either. A workaround is to add: if (size==0) size=1; /* OSF1 (at least) returns NULL on 0 alloc */ before the re_malloc (int, size) line in re_node_set_alloc(), which just means you allocate a small space (which shodul be free()d soon anyway). The actual regex whcih triggers this during the build is: ^tools($|_)