Merge branch 'ubsan-fix'

This merge marks the upload of version 1.1.1 into CRAN. Unfortunately,
a valgrind and Address sanitizer issue has been found.