[Rd] mkString (PR#866)
Thomas Lumley
tlumley@u.washington.edu
Wed, 7 Mar 2001 10:41:09 -0800 (PST)
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._