diff options
| author | Christopher Chavez <chrischavez@gmx.us> | 2024-01-02 14:03:39 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-02 14:03:39 (GMT) |
| commit | acf4cf5ca5ef62407e35609fb365e7dfaa362648 (patch) | |
| tree | fc07e7a4a295dc448d88be1ec1e29fe6280f55c2 /Python/getplatform.c | |
| parent | 5d36a95e64e30606e8f8e332edf6bde91ac344cf (diff) | |
| download | cpython-acf4cf5ca5ef62407e35609fb365e7dfaa362648.zip cpython-acf4cf5ca5ef62407e35609fb365e7dfaa362648.tar.gz cpython-acf4cf5ca5ef62407e35609fb365e7dfaa362648.tar.bz2 | |
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
Diffstat (limited to 'Python/getplatform.c')
0 files changed, 0 insertions, 0 deletions
