gh-111178: Avoid calling functions from incompatible pointer types in descrobject.c (GH-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
C
Christopher Chavez committed
acf4cf5ca5ef62407e35609fb365e7dfaa362648
Parent: 5d36a95
Committed by GitHub <noreply@github.com>
on 1/2/2024, 2:03:39 PM