[Rd] memory bug in is.na[n]() (PR#952)
Thomas Lumley
tlumley@u.washington.edu
Mon, 28 May 2001 10:44:57 -0700 (PDT)
On 28 May 2001, Peter Dalgaard BSA wrote:
> Thomas Lumley <tlumley@u.washington.edu> writes:
>
> > On Mon, 28 May 2001 maechler@stat.math.ethz.ch wrote:
> >
> > > I've forgotten to submit this as bug report
> > > (and haven't easily seen how to debug).
> > >
> > > The bug is both for is.na() and is.nan() {which makes much sense since
> > > the C code of the two is very similar!};
> > > only one is shown below.
> >
> > I think I've found it - I'll do a bit more testing.
>
Committed. The ans variable wasn't protected. This only matters when
is.nan returns a warning, as otherwise there is no more allocation before
the result is returned and protected by the caller.
Similar errors happened with is.na(.GlobalEnv) or is.na(new.env()).
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._