[Rcpp-devel] Possible regression in R-3.2.3 or Rcpp 0.12.3
Dirk Eddelbuettel
edd at debian.org
Fri Jan 29 20:29:56 CET 2016
On 29 January 2016 at 11:27, Kevin Ushey wrote:
| When I add some debug printing to the associated subscripting line
| (https://github.com/awalker89/openxlsx/blob/b92bb3acdd6ea759be928c298c6faeef2f26fa3e/src/cppFunctions.cpp#L2608),
| I see:
|
| colNumbers.size(): 98,03,150
| charCols.size(): 95,94,546
|
| It looks to me like the package is erroneously attempting to subset
| vectors of different sizes, causing out-of-bounds reads.
Nice work.
| Unfortunately, Rcpp is not detecting or warning about this...
|
| Either way, I believe this is a bug in the openxlsx package, but Rcpp
| should be checking / reporting this.
With (Rcpp)Armadillo you do have an option of turning this on/off. With Rcpp
alone not quite.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list