You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KhronosGroup/Vulkan-Hpp#2020 added `vk::PFN_...` function pointer
types as the preferred function pointers used in vulkan.hpp structs
and functions.
These function pointer types use C++-styled types for the function
arguments and return values, so the compiler treats them as types
different from the C-styled "PFN_...` function pointers types.
Vulkan-Hpp guarantees that they are binary identical during compile
time, but UBsan's function sanitizer trigger a "function pointer
type different" runtime error when these function pointers are invoked
in the Vulkan-Loader (for example, debug_utils.c and allocation.c).
Thus, we need to disable the function sanitizer from the Vulkan-Loader
so that Vulkan applications created using Vulkan-Hpp can run correctly
when UBsan is enabled.
Test: Vulkan examples (https://fuchsia.googlesource.com/fuchsia/+/
main/src/graphics/tests/common/test_vkcontext.cc) didn't crash on
Fuchsia core.x64-asan build.
Bug: https://fxbug.dev/378964821
Change-Id: I8406daa884e741dbc8ade8c0e402550c450858e0
0 commit comments