]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1913: if_python: undefined behaviour for function pointers v9.0.1913
authorYee Cheng Chin <ychin.git@gmail.com>
Tue, 19 Sep 2023 18:30:22 +0000 (20:30 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 19 Sep 2023 18:30:22 +0000 (20:30 +0200)
commit2ce070c27acd12ccc614afa4cecf4970a645a4af
tree2c8287ac4450e0fc6924c851ee59eb93f6863417
parent6f00d17e8d64ed46c85625e8ac38ed0928b32c58
patch 9.0.1913: if_python: undefined behaviour for function pointers

Problem:  if_python: undefined behaviour for function pointers
Solution: Fix if_python undefined behavior for function pointer casts

Identified by clang 17 UBSAN (see #12745). Make sure to cast function
pointers with the same signature only.

closes: #13122

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
src/if_py_both.h
src/if_python.c
src/if_python3.c
src/version.c