Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-21 Thread Peter Dalgaard
s...@userprimary.net wrote: Thanks, Seth. Martin Morgan sent a patch for a few lines above yours, which I didn't have a chance to review until now: - if (!isVectorList(x) LENGTH(y) 1) - error(_(more elements supplied than there are to replace)); + if (!isVectorList(x) LENGTH(y)

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-21 Thread Peter Dalgaard
OK. I now have a version which seems to do the trick and reuses an existing error message. Will commit to r-devel if and when make check-devel succeeds. -p Peter Dalgaard wrote: s...@userprimary.net wrote: Thanks, Seth. Martin Morgan sent a patch for a few lines above yours, which I didn't

[Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread g . russell
Full_Name: George Russell Version: 2.10.0, 2.11.0 (2009-12-13 r50716) OS: Windows Submission from: (NULL) (217.111.3.131) R trace: -- cut here -- v - integer(0) v[[1]] - v v [1] 20522144 v - numeric(0) v[[1]] - v v [1] 4.254131e-314 sessionInfo() R version 2.10.0 (2009-10-26)

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread Henrik Bengtsson
Confirmed behavior on R version 2.10.1 Patched (2010-01-12 r50990) and R version 2.11.0 Under development (unstable) (2010-02-14 r51138) [Windows Vista]: INTEGERS: v - integer(5) v [1] 0 0 0 0 0 v[[2]] - integer(0) v [1] 0 2892960 0 0 0 v[[4]] - 1L[c()] v [1] 0

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread Seth Falcon
On 2/20/10 7:50 AM, Peter Dalgaard wrote: You don't want to understand, believe me! ;-) It's a bug, probably not the very worst kind, but accessing memory that isn't yours is potentially harmful (but writing to it is considerably worse). Looks like the issue only concerns the right hand

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread seth
On 2/20/10 7:50 AM, Peter Dalgaard wrote: You don't want to understand, believe me! ;-) It's a bug, probably not the very worst kind, but accessing memory that isn't yours is potentially harmful (but writing to it is considerably worse). Looks like the issue only concerns the right hand