external/python3/ubsan.patch.0 | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 902ab630e906ddf0a469d502f1d137ef41077d2a Author: Stephan Bergmann <[email protected]> AuthorDate: Fri Dec 19 16:06:39 2025 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Mon Dec 22 16:20:17 2025 +0100 external/python3: Silence more UBSan "applying zero offset to null pointer" ...following up further on 2b86e8b371bc1a369be03925c8097ba9abe793c4 "external/python3: Silence more UBSan 'applying zero offset to null pointer'", now for <https://ci.libreoffice.org/job/lo_ubsan/3758/> Change-Id: Iff836059cb822fbb26d9bd8aba018bd60aaac71f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195911 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/external/python3/ubsan.patch.0 b/external/python3/ubsan.patch.0 index 65f39cd1ea39..5947d3905797 100644 --- a/external/python3/ubsan.patch.0 +++ b/external/python3/ubsan.patch.0 @@ -41,6 +41,15 @@ while (_PySet_NextEntryRef((PyObject *)other, &setpos, &key, &hash)) { FT_ATOMIC_STORE_PTR_RELEASE(*dest, key); dest++; +@@ -1344,7 +1344,7 @@ + return -1; + } + +- PyObject **dest = self->ob_item + m; ++ PyObject **dest = m == 0 ? self->ob_item : self->ob_item + m; + Py_ssize_t pos = 0; + PyObject *keyvalue[2]; + while (_PyDict_Next((PyObject *)dict, &pos, &keyvalue[0], &keyvalue[1], NULL)) { @@ -1367,7 +1367,7 @@ return -1; }
