From tlumley@u.washington.edu  Mon May 28 18:44:57 2001
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Mon, 28 May 2001 10:44:57 -0700 (PDT)
Subject: [Rd] memory bug in is.na[n]() (PR#952)
In-Reply-To: <x2wv71xtw5.fsf@blueberry.kubism.ku.dk>
Message-ID: <Pine.A41.4.33.0105281038580.24130-100000@homer41.u.washington.edu>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] memory bug in is.na[n]() (PR#952)
Thomas Lumley