Skip to content
  • Tom Anderson's avatar
    Fix CFI builds · 096e8019
    Tom Anderson authored and Akira TAGOH's avatar Akira TAGOH committed
    CFI [1] is a dynamic analysis tool that checks types at runtime.  It reports an
    error when using a function with signature eg. (void (*)(char*)) as
    (void (*)(void*)).  This change adds some wrapper functions to avoid this issue.
    In optimized builds, the functions should get optimized away.
    
    [1] https://clang.llvm.org/docs/ControlFlowIntegrity.html
    096e8019