Skip to content

Commit

Permalink
gh-111178: Avoid calling functions from incompatible pointer types in…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
chrstphrchvz authored Jan 2, 2024
1 parent 9ed36d5 commit 5d36a95
Showing 1 changed file with 92 additions and 72 deletions.
Loading

0 comments on commit 5d36a95

Please sign in to comment.