Skip to content
Prev 62468 / 63421 Next

changes in R-devel and zero-extent objects in Rcpp

IMHO, this should be changed in both Rcpp and downstream packages:

1. Rcpp could check for out-of-bounds accesses in cases like these, and
emit an R warning / error when such an access is detected;

2. The downstream packages unintentionally making these out-of-bounds
accesses should be fixed to avoid doing that.

That is, I think this is ultimately a bug in the affected packages, but
Rcpp could do better in detecting and handling this for client packages
(avoiding a segfault).

Best,
Kevin
On Sat, Jun 8, 2024, 3:06?PM Ben Bolker <bbolker at gmail.com> wrote: