search for: is_long_vec

Displaying 2 results from an estimated 2 matches for "is_long_vec".

2017 Feb 20
1
another fix for R crashes under enable-strict-barrier, lto, trunk@72156
On 2nd thought, I think a better fix to the segfault is something like this: --- a/src/main/memory.c +++ b/src/main/memory.c @@ -3444,6 +3444,8 @@ R_xlen_t (XTRUELENGTH)(SEXP x) { return XTRUELENGTH(CHK2(x)); } int (IS_LONG_VEC)(SEXP x) { return IS_LONG_VEC(CHK2(x)); } const char *(R_CHAR)(SEXP x) { + if(!x) + error("de-referncing null. Check the validity of your data."); if(TYPEOF(x) != CHARSXP) error("%s() can only be applied to a '%s', not a '%s'",...
2017 Feb 11
1
another fix for R crashes under enable-strict-barrier, lto, trunk@72156
...le-strict-barrier --enable-byte-compiled-packages --with-valgrind-instrumentation=2 --enable-lto current R dev crashes in make check-all . The fix is this: --- a/src/main/memory.c +++ b/src/main/memory.c @@ -3444,7 +3444,7 @@ R_xlen_t (XTRUELENGTH)(SEXP x) { return XTRUELENGTH(CHK2(x)); } int (IS_LONG_VEC)(SEXP x) { return IS_LONG_VEC(CHK2(x)); } const char *(R_CHAR)(SEXP x) { - if(TYPEOF(x) != CHARSXP) + if(x && (TYPEOF(x) != CHARSXP)) error("%s() can only be applied to a '%s', not a '%s'", "CHAR", "CHARSXP", type2...