CLD2Owners/cld2

UBSAN errors

jeroen opened this issue · 1 comments

libcld2/internal/utf8statetable.cc:300:18: runtime error: left shift of negative value -7
libcld2/internal/lang_script.cc:274:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:274:7 in 
libcld2/internal/lang_script.cc:275:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:275:7 in 
libcld2/internal/lang_script.cc:277:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:277:7 in 
libcld2/internal/lang_script.cc:278:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:278:7 in 
libcld2/internal/lang_script.cc:280:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:280:7 in 
libcld2/internal/lang_script.cc:281:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:281:7 in 
libcld2/internal/lang_script.cc:283:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:283:7 in 
libcld2/internal/lang_script.cc:284:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:284:7 in 
libcld2/internal/lang_script.cc:286:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:286:7 in 
libcld2/internal/lang_script.cc:287:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:287:7 in 
libcld2/internal/lang_script.cc:288:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:288:7 in 
libcld2/internal/lang_script.cc:289:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:289:7 in 
libcld2/internal/lang_script.cc:291:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:291:7 in 
libcld2/internal/lang_script.cc:292:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:292:7 in 
libcld2/internal/lang_script.cc:293:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:293:7 in 
libcld2/internal/lang_script.cc:294:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:294:7 in 
libcld2/internal/lang_script.cc:296:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:296:7 in 
libcld2/internal/lang_script.cc:297:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:297:7 in 
libcld2/internal/lang_script.cc:298:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:298:7 in 
libcld2/internal/lang_script.cc:300:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:300:7 in 
libcld2/internal/lang_script.cc:301:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:301:7 in 
libcld2/internal/lang_script.cc:302:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:302:7 in 
libcld2/internal/lang_script.cc:304:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:304:7 in 
libcld2/internal/lang_script.cc:305:7: runtime error: load of value 65535, which is not a valid value for type 'Language'
SUMMARY: AddressSanitizer: undefined-behavior libcld2/internal/lang_script.cc:305:7 in 
testthat results ================================================================

I know cld2 is no longer actively maintained, but would anyone have a suggestion how to fix this?