Skip to content

Commit

Permalink
pythongh-111178: Avoid calling functions from incompatible pointer ty…
Browse files Browse the repository at this point in the history
…pes in descrobject.c (pythonGH-112861)

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

Python/generated_cases.c.h:3315:13: runtime error: call to function mappingproxy_dealloc through pointer to incorrect function type 'void (*)(struct _object *)'
descrobject.c:1160: note: mappingproxy_dealloc defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Python/generated_cases.c.h:3315:13 in
  • Loading branch information
chrstphrchvz authored and kulikjak committed Jan 22, 2024
1 parent 1de0ffd commit 465eac6
Showing 1 changed file with 147 additions and 106 deletions.
Loading

0 comments on commit 465eac6

Please sign in to comment.