# Bug report Currently, running test_fromwidechar() of test_capi on UBSan logs UBSan errors. Example: ``` $ UBSAN_OPTIONS="halt_on_error=1" ./python -m test -v test_capi -m test_fromwidechar test_fromwidechar (test.test_capi.test_unicode.CAPITest.test_fromwidechar) Test PyUnicode_FromWideChar() ... Objects/unicodeobject.c:1942:38: runtime error: addition of unsigned offset to 0x0000017b51d8 overflowed to 0x0000017b51d4 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Objects/unicodeobject.c:1942:38 ``` I'm working on fixing these errors. <!-- gh-linked-prs --> ### Linked PRs * gh-151286 * gh-151323 * gh-151324 * gh-151325 <!-- /gh-linked-prs -->
Activity
gh-151284: Fix test_capi on UBSan (#151286)
[3.13] gh-151284: Fix test_capi on UBSan (GH-151286) (#151325)
[3.14] gh-151284: Fix test_capi on UBSan (GH-151286) (#151324)
[3.15] gh-151284: Fix test_capi on UBSan (GH-151286) (#151323)
pythongh-151284: Fix test_capi on UBSan (python#151286)