desc = read.dcf("BAD")
where BAD has a long field (see below for example). The crash happens
inside dummy_vfprintf. I think the issue is that the va_list ap is
modified by the first vsnprintf call (connections.c:190) and the
subsequent vsprintf call (connections.c:194) gets an invalid va_list
arg.
The following patch improves things for me, but I've not tested on
other platforms.
Index: connections.c
And here is an example BAD file, but I'm pretty sure any DCF field
with a very long value would trigger it:
Description: The package provides and API in R to query BioMart
I'm seeing a segfault on x86_64 Linux with the following code:
con = gzfile("test.gz", "wt")
write.dcf(desc, file=con)
close(con)
+ va_list aq;
+ va_copy(aq, ap);
+ res = vsnprintf(buf, BUFSIZE, format, aq);
+ va_end(aq);
if(res >= BUFSIZE) { /* res is the desired output length */
usedRalloc = TRUE;
b = R_alloc(res + 1, sizeof(char));
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
system which produces and maintains automatic annotation on
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun Nov 27 15:10:47 2005
This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT