Skip to content

Commit adb6a18

Browse files
chrstphrchvzaisk
authored andcommitted
pythongh-111178: Avoid calling functions from incompatible pointer types 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
1 parent 21a10c5 commit adb6a18

File tree

1 file changed

+147
-106
lines changed

1 file changed

+147
-106
lines changed

0 commit comments

Comments
 (0)