Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UBSAN issues #97

jimhester opened this issue May 7, 2019 · 0 comments


Copy link

commented May 7, 2019

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/internal/caster.h:30:25 in 
mio/include/mio/detail/mmap.ipp:258:31: runtime error: load of value 255, which is not a valid value for type 'typename remove_reference<bool &>::type' (aka 'bool')
    #0 0x7fa200226cd7 in mio::basic_mmap<(mio::access_mode)0, char>::operator=(mio::basic_mmap<(mio::access_mode)0, char>&&) /data/gannet/ripley/R/packages/tests-clang-SAN/vroom/src/mio/include/mio/detail/mmap.ipp:258:31
/data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/internal/caster.h:30:25: runtime error: -1 is outside the range of representable values of type 'unsigned long'
    #0 0x7f600115739e in unsigned long Rcpp::internal::caster<double, unsigned long>(double) /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/internal/caster.h:30:25

@jimhester jimhester closed this in b38fb3e May 7, 2019

jimhester added a commit that referenced this issue May 7, 2019

Avoid undefined-behavior when trying to move a bool value
It is kind of weird to try and move a bool anyway...

Fixes #97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.