search for: allocsexpnoncon

Displaying 1 result from an estimated 1 matches for "allocsexpnoncon".

Did you mean: allocsexpnoncons
2011 Aug 13
1
Latent flaw in SEXPREC definition
...SEXPREC in Rinternals.h, which likely doesn't cause problems now, but could if the relative sizes of data types changes. The SEXPREC structure contains a union that includes a primsxp, symsxp, etc, but not a vecsxp. However, in allocVector in memory.c, zero-length vectors are allocated using allocSExpNonCons, which appears to allocates a SEXPREC structure. This won't work if a vecsxp is larger than the other types that are in the union in the SEXPREC structure. Simply adding a vecsxp to the union would seem to fix this, as in the following patch: Index: src/include/Rinternals.h ================...