From tlumley@u.washington.edu  Wed Mar  7 18:41:09 2001
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Wed, 7 Mar 2001 10:41:09 -0800 (PST)
Subject: [Rd] mkString (PR#866)
In-Reply-To: <200103071823.TAA29687@pubhealth.ku.dk>
Message-ID: <Pine.A41.4.33.0103071026150.93332-100000@homer29.u.washington.edu>

On Wed, 7 Mar 2001 Timothy.Keitt@StonyBrook.Edu wrote:

> Full_Name: Tim Keitt
> Version: 1.2x
> OS: Linux
> Submission from: (NULL) (129.49.19.70)
>
>
> The function "mkString" declared in "Rinternals.h" dumps core if passed a NULL
> pointer.


Don't do that, then?

It's supposed to be passed a zero-terminated string, so it doesn't seem
unreasonable for it to assume that it can dereference its argument. The C
library functions don't in general accept NULL pointers as string
arguments.

I suppose a check for NULL would be fairly harmless, though.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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] mkString (PR#866)
Thomas Lumley