]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: Avoid calling functions from incompatible pointer types in listobject...
authorChristopher Chavez <chrischavez@gmx.us>
Tue, 2 Jan 2024 13:41:32 +0000 (07:41 -0600)
committerGitHub <noreply@github.com>
Tue, 2 Jan 2024 13:41:32 +0000 (14:41 +0100)
commit5d36a95e64e30606e8f8e332edf6bde91ac344cf
tree8c16b9cfe96ceeba86bcef7e1a03a23b1d4abc40
parent9ed36d533ab8b256f0a589b5be6d7a2fdcf4aff2
gh-111178: Avoid calling functions from incompatible pointer types in listobject.c (GH-112820)

Fix undefined behavior warnings (UBSan  -fsanitize=function), for example:

Objects/object.c:674:11: runtime error: call to function list_repr through pointer to incorrect function type 'struct _object *(*)(struct _object *)'
listobject.c:382: note: list_repr defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Objects/object.c:674:11 in
Objects/listobject.c