Re: [Rd] Buffer overflow in cairoBM.c line 402

2018-01-19 Thread Tomas Kalibera
Thanks for reporting - there is no need to reproduce this, it is an obvious error. I'll probably fix by throwing an error - like it is done in devX11.c when the file names are too long. Tomas On 01/19/2018 09:41 PM, Omri Schwarz wrote: Hi, all. Testing a change to that line to strncpy(x

[Rd] Buffer overflow in cairoBM.c line 402

2018-01-19 Thread Omri Schwarz
Hi, all. Testing a change to that line to strncpy(xd->filename, filename,PATH_MAX); right now. The bug itself I've yet to reproduce in anything that doesn't involve my employer's proprietary code, but strcpy is strcpy, after all. -- *Omri Schwarz* Engineer REsurety, Inc. [[alternat

Re: [Rd] bug fix integer overflow in medpolish function

2018-01-19 Thread Duncan Murdoch
On 19/01/2018 9:33 AM, Ludger Goeminne wrote: Dear R team I noticed a bug in the "medpolish" function in the "stats" package. When I run medpolish(x), with "x" the matrix in the attached .rda file, I get this rather cryptic error: "Error in if (converged) break : missing value where TRUE/FALSE

[Rd] bug fix integer overflow in medpolish function

2018-01-19 Thread Ludger Goeminne
Dear R team I noticed a bug in the "medpolish" function in the "stats" package. When I run medpolish(x), with "x" the matrix in the attached .rda file, I get this rather cryptic error: "Error in if (converged) break : missing value where TRUE/FALSE needed In addition: Warning message: In su

Re: [Rd] wrong matrix dimension in sparseQR

2018-01-19 Thread Serguei Sokol
I have found explanation in the comments to original cs_qr() matlab function http://users.encs.concordia.ca/~krzyzak/R%20Code-Communications%20in%20Statistics%20and%20Simulation%202014/Zubeh%F6r/SuiteSparse/CSparse3/MATLAB/CSparse/cs_qr.m "If A is structurally rank deficient, additional empty  ro