R core dumps when strsplit-ing long strings:
> str<-''; for(i in c(0:1000)) str<-paste(str,'a')
> strsplit(str,' ')
Bus Error (core dumped)
The attached patch fixes the problem in strsplit
by mallocating a short lived buffer of the right
size.
--
Jean Meloche