From p.dalgaard@biostat.ku.dk  Tue Apr  6 09:30:27 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 06 Apr 1999 10:30:27 +0200
Subject: seg fault with strsplit (PR#158)
In-Reply-To: jlindsey@alpha.luc.ac.be's message of "Tue, 6 Apr 1999 09:45:45 +0200"
References: <199904060745.JAA32726@blueberry.kubism.ku.dk>
Message-ID: <x2hfqui21o.fsf@blueberry.kubism.ku.dk>

jlindsey@alpha.luc.ac.be writes:

> Try the following with R 63.3:
> 
> test <- function(z){
> 	ch1 <- deparse(z,width=500)
> 	ch <- NULL
> 	for(i in 1:length(ch1))ch <- paste(ch,ch1[i],collapse=" ")
> 	a <- gsub("(\\[(0|1|2|3|4|5|6|7|8|9|:|,)+\\])|([][+*/^():!<>%&|~,{}\"\\\=-])|( [0-9]+)|(^[0-9]+)"," ",ch)
> 	print("here")
> 	strsplit(a," ")
> }
> test(glm)

We know... Buffer overflow. There's been a patch for it on r-devel by Jean
Meloche, using a short-lived malloc/free thing, but I'm still waiting
for someone to assure me that it won't interfere with current and
future memory management schemes.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


seg fault with strsplit (PR#158)
Peter Dalgaard BSA